Class: GooglePlus::Size

Inherits:
Base
  • Object
show all
Defined in:
lib/google_plus/size.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 GooglePlus::Base

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


11
12
13
# File 'lib/google_plus/size.rb', line 11

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