Sha256: aff5433086ff71559d048d727b690118eaf532526507a05c5629d752da2beb1f
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
# VoucherifySdk::ProductCollectionsCreateRequestBody ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'VoucherifySdk' VoucherifySdk::ProductCollectionsCreateRequestBody.openapi_one_of # => # [ # :'ProductCollectionsCreateDynamicRequestBody', # :'ProductCollectionsCreateStaticRequestBody' # ] ``` ### build Find the appropriate object from the `openapi_one_of` list and casts the data into it. #### Example ```ruby require 'VoucherifySdk' VoucherifySdk::ProductCollectionsCreateRequestBody.build(data) # => #<ProductCollectionsCreateDynamicRequestBody:0x00007fdd4aab02a0> VoucherifySdk::ProductCollectionsCreateRequestBody.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `ProductCollectionsCreateDynamicRequestBody` - `ProductCollectionsCreateStaticRequestBody` - `nil` (if no type matches)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voucherify-5.0.0 | docs/ProductCollectionsCreateRequestBody.md |