Sha256: 96f7b3ccfe181e4b1b556fa8b3a5cc233fa5d773aab1831be6dba39a2192dc5b

Contents?: true

Size: 1.64 KB

Versions: 6

Compression:

Stored size: 1.64 KB

Contents

# OryKratosClient::UiNodeAttributes

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

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

OryKratosClient::UiNodeAttributes.openapi_one_of
# =>
# [
#   :'UiNodeAnchorAttributes',
#   :'UiNodeImageAttributes',
#   :'UiNodeInputAttributes',
#   :'UiNodeScriptAttributes',
#   :'UiNodeTextAttributes'
# ]
```

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

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

OryKratosClient::UiNodeAttributes.openapi_discriminator_name
# => :'node_type'
```

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

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

OryKratosClient::UiNodeAttributes.openapi_discriminator_mapping
# =>
# {
#   :'a' => :'UiNodeAnchorAttributes',
#   :'img' => :'UiNodeImageAttributes',
#   :'input' => :'UiNodeInputAttributes',
#   :'script' => :'UiNodeScriptAttributes',
#   :'text' => :'UiNodeTextAttributes'
# }

### build

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

#### Example

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

OryKratosClient::UiNodeAttributes.build(data)
# => #<UiNodeAnchorAttributes:0x00007fdd4aab02a0>

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

#### Parameters

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

#### Return type

- `UiNodeAnchorAttributes`
- `UiNodeImageAttributes`
- `UiNodeInputAttributes`
- `UiNodeScriptAttributes`
- `UiNodeTextAttributes`
- `nil` (if no type matches)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ory-kratos-client-1.1.0 docs/UiNodeAttributes.md
ory-kratos-client-1.0.0 docs/UiNodeAttributes.md
ory-kratos-client-0.13.1 docs/UiNodeAttributes.md
ory-kratos-client-0.11.1 docs/UiNodeAttributes.md
ory-kratos-client-0.11.0 docs/UiNodeAttributes.md
ory-kratos-client-0.10.1 docs/UiNodeAttributes.md