Class: Tweetkit::Response::Tweets::Expansions::Media
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Expansions::Media
- Defined in:
- lib/tweetkit/response.rb
Defined Under Namespace
Classes: MediaObject
Instance Attribute Summary collapse
-
#media ⇒ Object
Returns the value of attribute media.
Instance Method Summary collapse
-
#initialize(media) ⇒ Media
constructor
A new instance of Media.
Constructor Details
#initialize(media) ⇒ Media
Returns a new instance of Media.
444 445 446 447 448 |
# File 'lib/tweetkit/response.rb', line 444 def initialize(media) return unless media @media = media.collect { |media_object| MediaObject.new(media_object) } end |
Instance Attribute Details
#media ⇒ Object
Returns the value of attribute media.
442 443 444 |
# File 'lib/tweetkit/response.rb', line 442 def media @media end |