Class: Tweetkit::Response::Tweets::Tweet::Geo
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Tweet::Geo
- Defined in:
- lib/tweetkit/response.rb
Defined Under Namespace
Classes: Coordinates
Instance Attribute Summary collapse
-
#coordinates ⇒ Object
Returns the value of attribute coordinates.
-
#place_id ⇒ Object
Returns the value of attribute place_id.
Instance Method Summary collapse
-
#initialize(geo) ⇒ Geo
constructor
A new instance of Geo.
Constructor Details
#initialize(geo) ⇒ Geo
Returns a new instance of Geo.
365 366 367 368 369 370 |
# File 'lib/tweetkit/response.rb', line 365 def initialize(geo) return unless geo @coordinates = Coordinates.new(geo['coordinates']) @place_id = geo['place_id'] end |
Instance Attribute Details
#coordinates ⇒ Object
Returns the value of attribute coordinates.
363 364 365 |
# File 'lib/tweetkit/response.rb', line 363 def coordinates @coordinates end |
#place_id ⇒ Object
Returns the value of attribute place_id.
363 364 365 |
# File 'lib/tweetkit/response.rb', line 363 def place_id @place_id end |