Class: Tweetkit::Response::Tweets::Expansions::Media::MediaObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(media_object) ⇒ MediaObject

Returns a new instance of MediaObject.



453
454
455
456
# File 'lib/tweetkit/response.rb', line 453

def initialize(media_object)
  @media_key = media_object['media_key']
  @type = media_object['type']
end

Instance Attribute Details

#media_keyObject

Returns the value of attribute media_key.



451
452
453
# File 'lib/tweetkit/response.rb', line 451

def media_key
  @media_key
end

#typeObject

Returns the value of attribute type.



451
452
453
# File 'lib/tweetkit/response.rb', line 451

def type
  @type
end