Method: AttrJson::Model#==

Defined in:
lib/attr_json/model.rb

#==(other_object) ⇒ Object

Two AttrJson::Model objects are equal if they are the same class AND their #attributes are equal.



406
407
408
# File 'lib/attr_json/model.rb', line 406

def ==(other_object)
  other_object.class == self.class && other_object.attributes == self.attributes
end