Sha256: 6cfa4992d7554dba36a7f1843403eff0b7b08a60d2ab09ae2b00ebf554c550bb

Contents?: true

Size: 1003 Bytes

Versions: 15

Compression:

Stored size: 1003 Bytes

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',
#   :'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`
- `UiNodeTextAttributes`
- `nil` (if no type matches)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ory-kratos-client-0.7.6.alpha7 docs/UiNodeAttributes.md
ory-kratos-client-0.7.6.alpha6 docs/UiNodeAttributes.md
ory-kratos-client-0.7.6.alpha5 docs/UiNodeAttributes.md
ory-kratos-client-0.7.6.alpha4 docs/UiNodeAttributes.md
ory-kratos-client-0.7.6.alpha3 docs/UiNodeAttributes.md
ory-kratos-client-0.7.6.alpha1 docs/UiNodeAttributes.md
ory-kratos-client-0.7.5.alpha2 docs/UiNodeAttributes.md
ory-kratos-client-0.7.3.alpha8 docs/UiNodeAttributes.md
ory-kratos-client-0.7.3.alpha6 docs/UiNodeAttributes.md
ory-kratos-client-0.7.3.alpha5 docs/UiNodeAttributes.md
ory-kratos-client-0.7.3.alpha4 docs/UiNodeAttributes.md
ory-kratos-client-0.7.3.alpha3 docs/UiNodeAttributes.md
ory-kratos-client-0.7.3.alpha2 docs/UiNodeAttributes.md
ory-kratos-client-0.7.3.alpha1 docs/UiNodeAttributes.md
ory-kratos-client-0.7.1.alpha2 docs/UiNodeAttributes.md