Class: Twitter::Polygon

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

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize, lazy_attr_reader

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

  • other (Twiter::Polygon)

Returns:

  • (Boolean)


9
10
11
# File 'lib/twitter/polygon.rb', line 9

def ==(other)
  super || (other.class == self.class && other.coordinates == self.coordinates)
end