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

- (Integer) latitude Also known as: lat



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

def latitude
  coordinates[0]
end

- (Integer) longitude Also known as: long, lng



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

def longitude
  coordinates[1]
end