Sha256: e4333474850f60f229d0042fc8e40c1347a1af3ee0c60db65070ddf2c30ec713

Contents?: true

Size: 1.4 KB

Versions: 84

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

84 entries across 84 versions & 1 rubygems

Version Path
ory-client-1.6.2 docs/UpdateRecoveryFlowBody.md
ory-client-1.6.1 docs/UpdateRecoveryFlowBody.md
ory-client-1.5.2 docs/UpdateRecoveryFlowBody.md
ory-client-1.5.1 docs/UpdateRecoveryFlowBody.md
ory-client-1.5.0 docs/UpdateRecoveryFlowBody.md
ory-client-1.4.9 docs/UpdateRecoveryFlowBody.md
ory-client-1.4.8 docs/UpdateRecoveryFlowBody.md
ory-client-1.4.7 docs/UpdateRecoveryFlowBody.md
ory-client-1.4.6 docs/UpdateRecoveryFlowBody.md
ory-client-1.4.5 docs/UpdateRecoveryFlowBody.md
ory-client-1.4.4 docs/UpdateRecoveryFlowBody.md
ory-client-1.4.3 docs/UpdateRecoveryFlowBody.md
ory-client-1.4.2 docs/UpdateRecoveryFlowBody.md
ory-client-1.4.1 docs/UpdateRecoveryFlowBody.md
ory-client-1.4.0 docs/UpdateRecoveryFlowBody.md
ory-client-1.3.0 docs/UpdateRecoveryFlowBody.md
ory-client-1.2.17 docs/UpdateRecoveryFlowBody.md
ory-client-1.2.16 docs/UpdateRecoveryFlowBody.md
ory-client-1.2.15 docs/UpdateRecoveryFlowBody.md
ory-client-1.2.14 docs/UpdateRecoveryFlowBody.md