Class: PatientZero::Message::Twitter
- Inherits:
-
Base
- Object
- Base
- PatientZero::Message::Twitter
show all
- Defined in:
- lib/patient_zero/message/twitter.rb
Instance Attribute Summary
Attributes inherited from Base
#data
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#clicks ⇒ Object
16
17
18
|
# File 'lib/patient_zero/message/twitter.rb', line 16
def clicks
data.fetch 'clicks'
end
|
#engagements ⇒ Object
4
5
6
|
# File 'lib/patient_zero/message/twitter.rb', line 4
def engagements
@engagements ||= + favorites + clicks
end
|
#favorites ⇒ Object
12
13
14
|
# File 'lib/patient_zero/message/twitter.rb', line 12
def favorites
data.fetch 'favorites'
end
|
8
9
10
|
# File 'lib/patient_zero/message/twitter.rb', line 8
def
data.fetch 'retweets'
end
|