Module: FulfilApi::Resource::Comparable
- Included in:
- FulfilApi::Resource
- Defined in:
- lib/fulfil_api/resource/comparable.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
6 7 8 9 |
# File 'lib/fulfil_api/resource/comparable.rb', line 6 def ==(other) other.is_a?(FulfilApi::Resource) && other.hash == hash end |
#eql?(other) ⇒ Boolean
11 12 13 |
# File 'lib/fulfil_api/resource/comparable.rb', line 11 def eql?(other) self == other end |
#hash ⇒ Object
15 16 17 |
# File 'lib/fulfil_api/resource/comparable.rb', line 15 def hash @attributes.hash end |