Class: PatientZero::Analytics::Tumblr

Inherits:
Base
  • Object
show all
Defined in:
lib/patient_zero/analytics/tumblr.rb

Instance Attribute Summary

Attributes inherited from Base

#end_date, #source_id, #start_date, #token

Instance Method Summary collapse

Methods inherited from Base

#initialize, #name, #platform

Methods included from Client

#connection, #get, included, #parse, #post, #put

Constructor Details

This class inherits a constructor from PatientZero::Analytics::Base

Instance Method Details

#engagementsObject



12
13
14
# File 'lib/patient_zero/analytics/tumblr.rb', line 12

def engagements
  likes
end

#followersObject



16
17
18
# File 'lib/patient_zero/analytics/tumblr.rb', line 16

def followers
  analytical_data.fetch('total_followers').to_i
end

#impressionsObject



32
33
34
# File 'lib/patient_zero/analytics/tumblr.rb', line 32

def impressions
  nil
end

#impressions_by_cityObject



24
25
26
# File 'lib/patient_zero/analytics/tumblr.rb', line 24

def impressions_by_city
  {}
end

#likesObject



20
21
22
# File 'lib/patient_zero/analytics/tumblr.rb', line 20

def likes
  analytical_data.fetch('total_likes').to_i
end

#messagesObject



4
5
6
# File 'lib/patient_zero/analytics/tumblr.rb', line 4

def messages
  []
end

#reachObject



36
37
38
# File 'lib/patient_zero/analytics/tumblr.rb', line 36

def reach
  nil
end

#total_commentsObject



28
29
30
# File 'lib/patient_zero/analytics/tumblr.rb', line 28

def total_comments
  nil
end

#total_postsObject



8
9
10
# File 'lib/patient_zero/analytics/tumblr.rb', line 8

def total_posts
  analytical_data.fetch('total_posts').to_i
end