Sha256: 81654d2bf69fbbcef6d474c27e02f8f3c6678011ca7dee7bce78b51294befae8

Contents?: true

Size: 1.4 KB

Versions: 34

Compression:

Stored size: 1.4 KB

Contents

# OryClient::UpdateRecoveryFlowBody

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'ory-client'

OryClient::UpdateRecoveryFlowBody.openapi_one_of
# =>
# [
#   :'UpdateRecoveryFlowWithCodeMethod',
#   :'UpdateRecoveryFlowWithLinkMethod'
# ]
```

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

```ruby
require 'ory-client'

OryClient::UpdateRecoveryFlowBody.openapi_discriminator_name
# => :'method'
```

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

```ruby
require 'ory-client'

OryClient::UpdateRecoveryFlowBody.openapi_discriminator_mapping
# =>
# {
#   :'code' => :'UpdateRecoveryFlowWithCodeMethod',
#   :'link' => :'UpdateRecoveryFlowWithLinkMethod'
# }
```

### build

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

#### Example

```ruby
require 'ory-client'

OryClient::UpdateRecoveryFlowBody.build(data)
# => #<UpdateRecoveryFlowWithCodeMethod:0x00007fdd4aab02a0>

OryClient::UpdateRecoveryFlowBody.build(data_that_doesnt_match)
# => nil
```

#### Parameters

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

#### Return type

- `UpdateRecoveryFlowWithCodeMethod`
- `UpdateRecoveryFlowWithLinkMethod`
- `nil` (if no type matches)

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
ory-client-1.14.2 docs/UpdateRecoveryFlowBody.md
ory-client-1.14.1 docs/UpdateRecoveryFlowBody.md
ory-client-1.14.0 docs/UpdateRecoveryFlowBody.md
ory-client-1.13.10 docs/UpdateRecoveryFlowBody.md
ory-client-1.13.6 docs/UpdateRecoveryFlowBody.md
ory-client-1.13.4 docs/UpdateRecoveryFlowBody.md
ory-client-1.13.3 docs/UpdateRecoveryFlowBody.md
ory-client-1.13.2 docs/UpdateRecoveryFlowBody.md
ory-client-1.13.1 docs/UpdateRecoveryFlowBody.md
ory-client-1.13.0 docs/UpdateRecoveryFlowBody.md
ory-client-1.11.6 docs/UpdateRecoveryFlowBody.md
ory-client-1.9.0 docs/UpdateRecoveryFlowBody.md
ory-client-1.8.1 docs/UpdateRecoveryFlowBody.md
ory-client-1.8.0 docs/UpdateRecoveryFlowBody.md