Class: Tweetkit::Response::Tweets::Tweet::Annotations
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Tweet::Annotations
- Defined in:
- lib/tweetkit/response.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#context_annotations ⇒ Object
Returns the value of attribute context_annotations.
-
#entity_annotations ⇒ Object
Returns the value of attribute entity_annotations.
Instance Method Summary collapse
-
#initialize(context_annotations, entity_annotations) ⇒ Annotations
constructor
A new instance of Annotations.
Constructor Details
#initialize(context_annotations, entity_annotations) ⇒ Annotations
Returns a new instance of Annotations.
200 201 202 203 204 205 |
# File 'lib/tweetkit/response.rb', line 200 def initialize(context_annotations, entity_annotations) return unless context_annotations || entity_annotations @context_annotations = Context.new(context_annotations) @entity_annotations = Entity.new(entity_annotations) end |
Instance Attribute Details
#context_annotations ⇒ Object
Returns the value of attribute context_annotations.
198 199 200 |
# File 'lib/tweetkit/response.rb', line 198 def context_annotations @context_annotations end |
#entity_annotations ⇒ Object
Returns the value of attribute entity_annotations.
198 199 200 |
# File 'lib/tweetkit/response.rb', line 198 def entity_annotations @entity_annotations end |