Method: TalonOne::IntegrationStateV2#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# File 'lib/talon_one/models/integration_state_v2.rb', line 211

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      customer_session == o.customer_session &&
      customer_profile == o.customer_profile &&
      event == o.event &&
      loyalty == o.loyalty &&
      referral == o.referral &&
      coupons == o.coupons &&
      triggered_campaigns == o.triggered_campaigns &&
      effects == o.effects &&
      rule_failure_reasons == o.rule_failure_reasons &&
      created_coupons == o.created_coupons &&
      created_referrals == o.created_referrals &&
      awarded_giveaways == o.awarded_giveaways &&
      _return == o._return &&
      previous_returns == o.previous_returns
end