Method: Fortnox::API::Model::Base#==
- Defined in:
- lib/fortnox/api/models/base.rb
#==(other) ⇒ Object
Generic comparison, by value, use .eql? or .equal? for object identity.
45 46 47 48 |
# File 'lib/fortnox/api/models/base.rb', line 45 def ==( other ) return false unless other.is_a? self.class self.to_hash == other.to_hash end |