Method: KlaviyoAPI::HasPushMarketingConsent#valid?
- Defined in:
- lib/klaviyo-api-sdk/models/has_push_marketing_consent.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
123 124 125 126 127 128 129 130 |
# File 'lib/klaviyo-api-sdk/models/has_push_marketing_consent.rb', line 123 def valid? return false if @channel.nil? return false if @can_receive_marketing.nil? can_receive_marketing_validator = EnumAttributeValidator.new('Boolean', ["true"]) return false unless can_receive_marketing_validator.valid?(@can_receive_marketing) return false if @consent_status.nil? true end |