Class: Tweetkit::Response::Tweets::Expansions::Places
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Expansions::Places
- Defined in:
- lib/tweetkit/response.rb
Defined Under Namespace
Classes: Place
Instance Attribute Summary collapse
-
#places ⇒ Object
Returns the value of attribute places.
Instance Method Summary collapse
-
#initialize(places) ⇒ Places
constructor
A new instance of Places.
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
#places ⇒ Object
Returns the value of attribute places.
461 462 463 |
# File 'lib/tweetkit/response.rb', line 461 def places @places end |