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