Sha256: cda7cbf519be967ad5985a9659e27e8d9362f2d6031f054ee176a4510029ed7a

Contents?: true

Size: 1.62 KB

Versions: 1

Compression:

Stored size: 1.62 KB

Contents

# OryKratosClient::ContinueWith

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'ory-kratos-client'

OryKratosClient::ContinueWith.openapi_one_of
# =>
# [
#   :'ContinueWithRecoveryUi',
#   :'ContinueWithSetOrySessionToken',
#   :'ContinueWithSettingsUi',
#   :'ContinueWithVerificationUi'
# ]
```

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

```ruby
require 'ory-kratos-client'

OryKratosClient::ContinueWith.openapi_discriminator_name
# => :'action'
```

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

```ruby
require 'ory-kratos-client'

OryKratosClient::ContinueWith.openapi_discriminator_mapping
# =>
# {
#   :'set_ory_session_token' => :'ContinueWithSetOrySessionToken',
#   :'show_recovery_ui' => :'ContinueWithRecoveryUi',
#   :'show_settings_ui' => :'ContinueWithSettingsUi',
#   :'show_verification_ui' => :'ContinueWithVerificationUi'
# }
```

### build

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

#### Example

```ruby
require 'ory-kratos-client'

OryKratosClient::ContinueWith.build(data)
# => #<ContinueWithRecoveryUi:0x00007fdd4aab02a0>

OryKratosClient::ContinueWith.build(data_that_doesnt_match)
# => nil
```

#### Parameters

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

#### Return type

- `ContinueWithRecoveryUi`
- `ContinueWithSetOrySessionToken`
- `ContinueWithSettingsUi`
- `ContinueWithVerificationUi`
- `nil` (if no type matches)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ory-kratos-client-1.2.1 docs/ContinueWith.md