Class: Twitter::Geo::Point
- Inherits:
-
Twitter::Geo
- Object
- Base
- Twitter::Geo
- Twitter::Geo::Point
- Defined in:
- lib/twitter/geo/point.rb
Instance Attribute Summary
Attributes inherited from Twitter::Geo
Attributes inherited from Base
Instance Method Summary collapse
- #latitude ⇒ Integer (also: #lat)
- #longitude ⇒ Integer (also: #long, #lng)
Methods inherited from Twitter::Geo
Methods inherited from Base
#[], attr_reader, fetch, fetch_or_new, from_response, identity_map, #initialize, store, #update
Constructor Details
This class inherits a constructor from Twitter::Base
Instance Method Details
#latitude ⇒ Integer Also known as: lat
8 9 10 |
# File 'lib/twitter/geo/point.rb', line 8 def latitude self.coordinates[0] end |
#longitude ⇒ Integer Also known as: long, lng
14 15 16 |
# File 'lib/twitter/geo/point.rb', line 14 def longitude self.coordinates[1] end |