Sha256: 51000c36d1d28b345813b550a1090e06a58c6d6f8db93afea05ef3f5139aa068
Contents?: true
Size: 1.01 KB
Versions: 12
Compression:
Stored size: 1.01 KB
Contents
# KlaviyoAPI::CampaignCreateQueryResourceObjectAttributesSendOptions ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'klaviyo-api-sdk' KlaviyoAPI::CampaignCreateQueryResourceObjectAttributesSendOptions.openapi_one_of # => # [ # :'EmailSendOptionsSubObject', # :'SMSSendOptionsSubObject' # ] ``` ### build Find the appropriate object from the `openapi_one_of` list and casts the data into it. #### Example ```ruby require 'klaviyo-api-sdk' KlaviyoAPI::CampaignCreateQueryResourceObjectAttributesSendOptions.build(data) # => #<EmailSendOptionsSubObject:0x00007fdd4aab02a0> KlaviyoAPI::CampaignCreateQueryResourceObjectAttributesSendOptions.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `EmailSendOptionsSubObject` - `SMSSendOptionsSubObject` - `nil` (if no type matches)
Version data entries
12 entries across 12 versions & 1 rubygems