Class: DaFace::Datasift::TwitterDeleteNotification
- Inherits:
-
Object
- Object
- DaFace::Datasift::TwitterDeleteNotification
- Defined in:
- lib/da_face/datasift/twitter_delete_notification.rb
Instance Attribute Summary collapse
-
#interaction_id ⇒ Object
readonly
Returns the value of attribute interaction_id.
-
#interaction_type ⇒ Object
readonly
Returns the value of attribute interaction_type.
-
#tweet_id ⇒ Object
readonly
Returns the value of attribute tweet_id.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ TwitterDeleteNotification
constructor
A new instance of TwitterDeleteNotification.
Constructor Details
#initialize(data = {}) ⇒ TwitterDeleteNotification
Returns a new instance of TwitterDeleteNotification.
6 7 8 9 10 11 12 13 |
# File 'lib/da_face/datasift/twitter_delete_notification.rb', line 6 def initialize data={} raise DaFace::Datasift::BadTwitterDeleteNotification.new('Missing interaction information') unless data[:interaction] raise DaFace::Datasift::BadTwitterDeleteNotification.new('Missing twitter information') unless data[:interaction] @interaction_id = data[:interaction][:id] @interaction_type = data[:interaction][:type] @tweet_id = data[:twitter][:id] end |
Instance Attribute Details
#interaction_id ⇒ Object (readonly)
Returns the value of attribute interaction_id.
4 5 6 |
# File 'lib/da_face/datasift/twitter_delete_notification.rb', line 4 def interaction_id @interaction_id end |
#interaction_type ⇒ Object (readonly)
Returns the value of attribute interaction_type.
4 5 6 |
# File 'lib/da_face/datasift/twitter_delete_notification.rb', line 4 def interaction_type @interaction_type end |
#tweet_id ⇒ Object (readonly)
Returns the value of attribute tweet_id.
4 5 6 |
# File 'lib/da_face/datasift/twitter_delete_notification.rb', line 4 def tweet_id @tweet_id end |