Class: Tweetkit::Response::Tweets::Tweet::Geo::Coordinates
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Tweet::Geo::Coordinates
- Defined in:
- lib/tweetkit/response.rb
Instance Attribute Summary collapse
-
#coordinates ⇒ Object
Returns the value of attribute coordinates.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(coordinates) ⇒ Coordinates
constructor
A new instance of Coordinates.
- #x ⇒ Object
- #y ⇒ Object
Constructor Details
#initialize(coordinates) ⇒ Coordinates
Returns a new instance of Coordinates.
375 376 377 378 |
# File 'lib/tweetkit/response.rb', line 375 def initialize(coordinates) @coordinates = coordinates['coordinates'] @type = coordinates['point'] end |
Instance Attribute Details
#coordinates ⇒ Object
Returns the value of attribute coordinates.
373 374 375 |
# File 'lib/tweetkit/response.rb', line 373 def coordinates @coordinates end |
#type ⇒ Object
Returns the value of attribute type.
373 374 375 |
# File 'lib/tweetkit/response.rb', line 373 def type @type end |
Instance Method Details
#x ⇒ Object
380 381 382 |
# File 'lib/tweetkit/response.rb', line 380 def x coordinates[0] end |
#y ⇒ Object
384 385 386 |
# File 'lib/tweetkit/response.rb', line 384 def y coordinates[0] end |