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