class PatientZero::Analytics::Instagram
Public Instance Methods
engagements()
click to toggle source
# File lib/patient_zero/analytics/instagram.rb, line 4 def engagements @engagements ||= messages.reduce(0) { |sum, message| sum + message.engagements } end
followers()
click to toggle source
# File lib/patient_zero/analytics/instagram.rb, line 12 def followers analytical_data['total_followers'].to_i end
impressions()
click to toggle source
# File lib/patient_zero/analytics/instagram.rb, line 8 def impressions @impressions ||= messages.reduce(0) { |sum, message| sum + message.impressions } end
impressions_by_city()
click to toggle source
# File lib/patient_zero/analytics/instagram.rb, line 20 def impressions_by_city {} end
likes()
click to toggle source
# File lib/patient_zero/analytics/instagram.rb, line 24 def likes analytical_data['total_likes'].to_i end
reach()
click to toggle source
# File lib/patient_zero/analytics/instagram.rb, line 16 def reach nil end
total_comments()
click to toggle source
# File lib/patient_zero/analytics/instagram.rb, line 28 def total_comments analytical_data['total_comments'].to_i end