Method: KlaviyoAPI::HasPushMarketingConsent#==

Defined in:
lib/klaviyo-api-sdk/models/has_push_marketing_consent.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



145
146
147
148
149
150
151
# File 'lib/klaviyo-api-sdk/models/has_push_marketing_consent.rb', line 145

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      channel == o.channel &&
      can_receive_marketing == o.can_receive_marketing &&
      consent_status == o.consent_status
end