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