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