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

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

Defined Under Namespace

Classes: MediaObject

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mediaObject

Returns the value of attribute media.



442
443
444
# File 'lib/tweetkit/response.rb', line 442

def media
  @media
end