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 Base
#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, display_uri_attr_reader, #initialize, object_attr_reader, predicate_attr_reader, uri_attr_reader
Methods included from Utils
Constructor Details
This class inherits a constructor from Twitter::Base
Instance Method Details
#latitude ⇒ Integer Also known as: lat
7 8 9 |
# File 'lib/twitter/geo/point.rb', line 7 def latitude coordinates[0] end |
#longitude ⇒ Integer Also known as: long, lng
13 14 15 |
# File 'lib/twitter/geo/point.rb', line 13 def longitude coordinates[1] end |