Class: Tweetkit::Response::Tweets::Tweet::Annotations::Context::Annotation
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Tweet::Annotations::Context::Annotation
- Defined in:
- lib/tweetkit/response.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#entity ⇒ Object
Returns the value of attribute entity.
Instance Method Summary collapse
-
#initialize(annotation) ⇒ Annotation
constructor
A new instance of Annotation.
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
#domain ⇒ Object
Returns the value of attribute domain.
223 224 225 |
# File 'lib/tweetkit/response.rb', line 223 def domain @domain end |
#entity ⇒ Object
Returns the value of attribute entity.
223 224 225 |
# File 'lib/tweetkit/response.rb', line 223 def entity @entity end |