Sha256: 51f424e2c0a724dd5f6f96c486fa776a232a7c2f70b5e3ea7fb39bb5f719800b

Contents?: true

Size: 988 Bytes

Versions: 8

Compression:

Stored size: 988 Bytes

Contents

# KlaviyoAPI::CampaignValuesRequestDTOResourceObjectAttributesTimeframe

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

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

KlaviyoAPI::CampaignValuesRequestDTOResourceObjectAttributesTimeframe.openapi_one_of
# =>
# [
#   :'CustomTimeframe',
#   :'Timeframe'
# ]
```

### build

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

#### Example

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

KlaviyoAPI::CampaignValuesRequestDTOResourceObjectAttributesTimeframe.build(data)
# => #<CustomTimeframe:0x00007fdd4aab02a0>

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

#### Parameters

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

#### Return type

- `CustomTimeframe`
- `Timeframe`
- `nil` (if no type matches)

Version data entries

8 entries across 8 versions & 1 rubygems

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