Returns the list of classes defined in oneOf.
require 'synctera'
Synctera::Lookup3dsRequest.openapi_one_of
# =>
# [
# :'Lookup3dsRequestBrowser',
# :'Lookup3dsRequestSdk'
# ]
Returns the discriminator's property name.
require 'synctera'
Synctera::Lookup3dsRequest.openapi_discriminator_name
# => :'device_channel'
Returns the discriminator's mapping.
require 'synctera'
Synctera::Lookup3dsRequest.openapi_discriminator_mapping
# =>
# {
# :'BROWSER' => :'Lookup3dsRequestBrowser',
# :'SDK' => :'Lookup3dsRequestSdk'
# }
Find the appropriate object from the openapi_one_of
list and casts the data into it.
require 'synctera'
Synctera::Lookup3dsRequest.build(data)
# => #<Lookup3dsRequestBrowser:0x00007fdd4aab02a0>
Synctera::Lookup3dsRequest.build(data_that_doesnt_match)
# => nil
Name | Type | Description |
---|---|---|
data | Mixed | data to be matched against the list of oneOf items |
Lookup3dsRequestBrowser
Lookup3dsRequestSdk
nil
(if no type matches)