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 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

#latitudeInteger Also known as: lat

Returns:

  • (Integer)


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

def latitude
  self.coordinates[0]
end

#longitudeInteger Also known as: long, lng

Returns:

  • (Integer)


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

def longitude
  self.coordinates[1]
end