Sha256: 35a66cd4dde7eac33d432cd0a288b7f51d0a969de03c50792b6e1ddee4c41563

Contents?: true

Size: 875 Bytes

Versions: 1

Compression:

Stored size: 875 Bytes

Contents

# VoucherifySdk::RedemptionsGetResponseBody

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'VoucherifySdk'

VoucherifySdk::RedemptionsGetResponseBody.openapi_one_of
# =>
# [
#   :'Redemption',
#   :'RedemptionRollback'
# ]
```

### build

Find the appropriate object from the `openapi_one_of` list and casts the data into it.

#### Example

```ruby
require 'VoucherifySdk'

VoucherifySdk::RedemptionsGetResponseBody.build(data)
# => #<Redemption:0x00007fdd4aab02a0>

VoucherifySdk::RedemptionsGetResponseBody.build(data_that_doesnt_match)
# => nil
```

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| **data** | **Mixed** | data to be matched against the list of oneOf items |

#### Return type

- `Redemption`
- `RedemptionRollback`
- `nil` (if no type matches)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voucherify-5.0.0 docs/RedemptionsGetResponseBody.md