Class: Tweetkit::Response::Tweets::Expansions::Places

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

Defined Under Namespace

Classes: Place

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(places) ⇒ Places

Returns a new instance of Places.



463
464
465
466
467
# File 'lib/tweetkit/response.rb', line 463

def initialize(places)
  return unless places

  @places = places.collect { |place| Place.new(place) }
end

Instance Attribute Details

#placesObject

Returns the value of attribute places.



461
462
463
# File 'lib/tweetkit/response.rb', line 461

def places
  @places
end