class PatientZero::Message::Instagram

Public Instance Methods

clicks() click to toggle source
# File lib/patient_zero/message/instagram.rb, line 20
def clicks
  data.fetch 'clicks'
end
comments() click to toggle source
# File lib/patient_zero/message/instagram.rb, line 16
def comments
  data.fetch 'comments'
end
engagements() click to toggle source
# File lib/patient_zero/message/instagram.rb, line 4
def engagements
  @engagements ||= likes + comments + clicks + shares
end
impressions() click to toggle source
# File lib/patient_zero/message/instagram.rb, line 8
def impressions
  data.fetch 'impressions'
end
likes() click to toggle source
# File lib/patient_zero/message/instagram.rb, line 12
def likes
  data.fetch 'likes'
end
shares() click to toggle source
# File lib/patient_zero/message/instagram.rb, line 24
def shares
  data.fetch('shares').to_i
end