Sha256: 5c8ea4bfb9aa792f1ed5c017b72acb6e6930d80d73ca77ccc6735259034e64f5

Contents?: true

Size: 1 KB

Versions: 7

Compression:

Stored size: 1 KB

Contents

# KlaviyoAPI::HasEmailMarketingConsentConsentStatus

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI::HasEmailMarketingConsentConsentStatus.openapi_one_of
# =>
# [
#   :'HasEmailMarketing',
#   :'HasEmailMarketingNeverSubscribed',
#   :'HasEmailMarketingSubscribed'
# ]
```

### build

Find the appropriate object from the `openapi_one_of` list and casts the data into it.

#### Example

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI::HasEmailMarketingConsentConsentStatus.build(data)
# => #<HasEmailMarketing:0x00007fdd4aab02a0>

KlaviyoAPI::HasEmailMarketingConsentConsentStatus.build(data_that_doesnt_match)
# => nil
```

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| **data** | **Mixed** | data to be matched against the list of oneOf items |

#### Return type

- `HasEmailMarketing`
- `HasEmailMarketingNeverSubscribed`
- `HasEmailMarketingSubscribed`
- `nil` (if no type matches)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
klaviyo-api-sdk-12.0.0 docs/HasEmailMarketingConsentConsentStatus.md
klaviyo-api-sdk-11.1.0 docs/HasEmailMarketingConsentConsentStatus.md
klaviyo-api-sdk-11.0.0 docs/HasEmailMarketingConsentConsentStatus.md
klaviyo-api-sdk-10.0.0 docs/HasEmailMarketingConsentConsentStatus.md
klaviyo-api-sdk-9.0.0 docs/HasEmailMarketingConsentConsentStatus.md
klaviyo-api-sdk-8.0.0 docs/HasEmailMarketingConsentConsentStatus.md
klaviyo-api-sdk-7.1.0 docs/HasEmailMarketingConsentConsentStatus.md