Class: Tweetkit::Response::Tweets::Expansions::Media::MediaObject
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Expansions::Media::MediaObject
- Defined in:
- lib/tweetkit/response.rb
Instance Attribute Summary collapse
-
#media_key ⇒ Object
Returns the value of attribute media_key.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(media_object) ⇒ MediaObject
constructor
A new instance of MediaObject.
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_key ⇒ Object
Returns the value of attribute media_key.
451 452 453 |
# File 'lib/tweetkit/response.rb', line 451 def media_key @media_key end |
#type ⇒ Object
Returns the value of attribute type.
451 452 453 |
# File 'lib/tweetkit/response.rb', line 451 def type @type end |