Class: PatientZero::Analytics::Tumblr
- Inherits:
-
Base
- Object
- Base
- PatientZero::Analytics::Tumblr
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
Instance Method Details
#engagements ⇒ Object
12
13
14
|
# File 'lib/patient_zero/analytics/tumblr.rb', line 12
def engagements
likes
end
|
#followers ⇒ Object
16
17
18
|
# File 'lib/patient_zero/analytics/tumblr.rb', line 16
def followers
analytical_data.fetch('total_followers').to_i
end
|
#impressions ⇒ Object
32
33
34
|
# File 'lib/patient_zero/analytics/tumblr.rb', line 32
def impressions
nil
end
|
#impressions_by_city ⇒ Object
24
25
26
|
# File 'lib/patient_zero/analytics/tumblr.rb', line 24
def impressions_by_city
{}
end
|
#likes ⇒ Object
20
21
22
|
# File 'lib/patient_zero/analytics/tumblr.rb', line 20
def likes
analytical_data.fetch('total_likes').to_i
end
|
#messages ⇒ Object
4
5
6
|
# File 'lib/patient_zero/analytics/tumblr.rb', line 4
def messages
[]
end
|
#reach ⇒ Object
36
37
38
|
# File 'lib/patient_zero/analytics/tumblr.rb', line 36
def reach
nil
end
|
28
29
30
|
# File 'lib/patient_zero/analytics/tumblr.rb', line 28
def
nil
end
|
#total_posts ⇒ Object
8
9
10
|
# File 'lib/patient_zero/analytics/tumblr.rb', line 8
def total_posts
analytical_data.fetch('total_posts').to_i
end
|