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