Sha256: 2f468eb28ad29fc9a59c56062a55fc5693c6c3b56a3bde9172601161f57f08fd

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 KB

Contents

# OryHydraClient::SubmitSelfServiceLoginFlowBody

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'ory-client'

OryHydraClient::SubmitSelfServiceLoginFlowBody.openapi_one_of
# =>
# [
#   :'SubmitSelfServiceLoginFlowWithPasswordMethodBody'
# ]
```

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

```ruby
require 'ory-client'

OryHydraClient::SubmitSelfServiceLoginFlowBody.openapi_discriminator_name
# => :'method'
```

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

```ruby
require 'ory-client'

OryHydraClient::SubmitSelfServiceLoginFlowBody.openapi_discriminator_mapping
# =>
# {
#   :'oidc' => :'SubmitSelfServiceLoginFlowWithOidcMethodBody',
#   :'password' => :'SubmitSelfServiceLoginFlowWithPasswordMethodBody'
# }

### build

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

#### Example

```ruby
require 'ory-client'

OryHydraClient::SubmitSelfServiceLoginFlowBody.build(data)
# => #<SubmitSelfServiceLoginFlowWithPasswordMethodBody:0x00007fdd4aab02a0>

OryHydraClient::SubmitSelfServiceLoginFlowBody.build(data_that_doesnt_match)
# => nil
```

#### Parameters

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

#### Return type

- `SubmitSelfServiceLoginFlowWithPasswordMethodBody`
- `nil` (if no type matches)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ory-client-0.0.1.alpha17 docs/SubmitSelfServiceLoginFlowBody.md
ory-client-0.0.1.alpha16 docs/SubmitSelfServiceLoginFlowBody.md