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