Class: Tweetkit::Response::Tweets::Tweet::Annotations

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

Defined Under Namespace

Classes: Context, Entity

Instance Attribute Summary collapse

Instance Method Summary collapse

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_annotationsObject

Returns the value of attribute context_annotations.



198
199
200
# File 'lib/tweetkit/response.rb', line 198

def context_annotations
  @context_annotations
end

#entity_annotationsObject

Returns the value of attribute entity_annotations.



198
199
200
# File 'lib/tweetkit/response.rb', line 198

def entity_annotations
  @entity_annotations
end