Method: TalonOne::NewEvent#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



188
189
190
191
192
193
194
195
196
# File 'lib/talon_one/models/new_event.rb', line 188

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      profile_id == o.profile_id &&
      store_integration_id == o.store_integration_id &&
      type == o.type &&
      attributes == o.attributes &&
      session_id == o.session_id
end