Class: Twitter::Geo

Inherits:
Base
  • Object
show all
Defined in:
lib/twitter/geo.rb,
lib/twitter/geo/point.rb,
lib/twitter/geo/polygon.rb

Direct Known Subclasses

Point, Polygon

Defined Under Namespace

Classes: Point, Polygon

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

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

#coordinatesObject (readonly) Also known as: coords

Returns the value of attribute coordinates.



5
6
7
# File 'lib/twitter/geo.rb', line 5

def coordinates
  @coordinates
end

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


10
11
12
# File 'lib/twitter/geo.rb', line 10

def ==(other)
  super || attr_equal(:coordinates, other) || attrs_equal(other)
end