Class: DaFace::Datasift::TwitterDeleteNotification

Inherits:
Object
  • Object
show all
Defined in:
lib/da_face/datasift/twitter_delete_notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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_typeObject (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_idObject (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