Method: TalonOne::Entity#==

Defined in:
lib/talon_one/models/entity.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



94
95
96
97
98
99
# File 'lib/talon_one/models/entity.rb', line 94

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      created == o.created
end