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