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

Instance Method Summary collapse

Methods inherited from Twitter::Geo

#==

Methods inherited from Base

#[], #attr_equal, attr_reader, #attrs, #attrs_equal, 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
  coordinates[0]
end

#longitudeInteger Also known as: long, lng

Returns:

  • (Integer)


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

def longitude
  coordinates[1]
end