Sha256: 50d9a212adc0a5ed6120cb57dad8712d9f816fab7d0d40971b30f2c491241899

Contents?: true

Size: 985 Bytes

Versions: 13

Compression:

Stored size: 985 Bytes

Contents

# OryHydraClient::UiNodeAttributes

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'ory-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-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

13 entries across 13 versions & 1 rubygems

Version Path
ory-client-0.0.1.alpha17 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha16 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha15 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha14 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha13 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha12 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha11 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha10 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha9 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha8 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha7 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha6 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha5 docs/UiNodeAttributes.md