Class: Tweetkit::Response::Tweets::Tweet::Annotations::Context::Annotation

Inherits:
Object
  • Object
show all
Defined in:
lib/tweetkit/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(annotation) ⇒ Annotation

Returns a new instance of Annotation.



225
226
227
228
# File 'lib/tweetkit/response.rb', line 225

def initialize(annotation)
  @domain = annotation['domain']
  @entity = annotation['entity']
end

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



223
224
225
# File 'lib/tweetkit/response.rb', line 223

def domain
  @domain
end

#entityObject

Returns the value of attribute entity.



223
224
225
# File 'lib/tweetkit/response.rb', line 223

def entity
  @entity
end