Last active
September 13, 2018 14:37
-
-
Save SnacksOnAPlane/3da51be77e343e32b475b674cb9f9c31 to your computer and use it in GitHub Desktop.
Call time, duration, time of opportunity tagging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
op_tag = Tag.find(1581739) | |
def time_of_tagging(c) | |
c.taggings.where(tag_id: 1581739).first.created_at | |
end | |
calls.map { |c| [ c.start_time, c.duration, time_of_tagging(c) ] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment