Class: Tweetkit::Response::Tweets::Tweet::Annotations::Entity::Urls

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

Defined Under Namespace

Classes: Url

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(urls) ⇒ Urls

Returns a new instance of Urls.



337
338
339
340
341
# File 'lib/tweetkit/response.rb', line 337

def initialize(urls)
  return unless urls

  @urls = urls.collect { |url| Url.new(url) }
end

Instance Attribute Details

#urlsObject

Returns the value of attribute urls.



335
336
337
# File 'lib/tweetkit/response.rb', line 335

def urls
  @urls
end