Class: Twitter::Geo::Point

Inherits:
Twitter::Geo show all
Defined in:
lib/twitter/geo/point.rb

Instance Attribute Summary

Attributes inherited from Twitter::Geo

#coordinates

Attributes inherited from Base

#attrs

Instance Method Summary collapse

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

flat_pmap, pmap

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Method Details

#latitudeInteger Also known as: lat

Returns:

  • (Integer)


7
8
9
# File 'lib/twitter/geo/point.rb', line 7

def latitude
  coordinates[0]
end

#longitudeInteger Also known as: long, lng

Returns:

  • (Integer)


13
14
15
# File 'lib/twitter/geo/point.rb', line 13

def longitude
  coordinates[1]
end