Sha256: 800f0cedd1c0af55b14819daf23f23d7e94c6b4fb228539fa5bb59eb6be8441a

Contents?: true

Size: 999 Bytes

Versions: 15

Compression:

Stored size: 999 Bytes

Contents

# OryHydraClient::UiNodeAttributes

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

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

OryHydraClient::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'

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

OryHydraClient::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.1.alpha1 docs/UiNodeAttributes.md
ory-kratos-client-0.7.0.alpha1 docs/UiNodeAttributes.md
ory-kratos-client-0.6.3.alpha1 docs/UiNodeAttributes.md
ory-kratos-client-0.6.2.alpha1 docs/UiNodeAttributes.md
ory-kratos-client-0.6.1.alpha1 docs/UiNodeAttributes.md
ory-kratos-client-0.6.0.alpha17 docs/UiNodeAttributes.md
ory-kratos-client-0.6.0.alpha16 docs/UiNodeAttributes.md
ory-kratos-client-0.6.0.alpha15 docs/UiNodeAttributes.md
ory-kratos-client-0.6.0.alpha11 docs/UiNodeAttributes.md
ory-kratos-client-0.6.0.alpha8 docs/UiNodeAttributes.md
ory-kratos-client-0.6.0.alpha6 docs/UiNodeAttributes.md
ory-kratos-client-0.6.0.alpha5 docs/UiNodeAttributes.md
ory-kratos-client-0.6.0.alpha4 docs/UiNodeAttributes.md
ory-kratos-client-0.6.0.alpha2 docs/UiNodeAttributes.md
ory-kratos-client-0.6.0.alpha1 docs/UiNodeAttributes.md