Sha256: 31dfabf642eaa610ebd6d662a36e7e03c97c7e3f80fef8672dd5cf86fb52ac80

Contents?: true

Size: 1.58 KB

Versions: 147

Compression:

Stored size: 1.58 KB

Contents

# OryClient::UiNodeAttributes

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'ory-client'

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

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

```ruby
require 'ory-client'

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

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

```ruby
require 'ory-client'

OryClient::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-client'

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

OryClient::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

147 entries across 147 versions & 1 rubygems

Version Path
ory-client-1.6.2 docs/UiNodeAttributes.md
ory-client-1.6.1 docs/UiNodeAttributes.md
ory-client-1.5.2 docs/UiNodeAttributes.md
ory-client-1.5.1 docs/UiNodeAttributes.md
ory-client-1.5.0 docs/UiNodeAttributes.md
ory-client-1.4.9 docs/UiNodeAttributes.md
ory-client-1.4.8 docs/UiNodeAttributes.md
ory-client-1.4.7 docs/UiNodeAttributes.md
ory-client-1.4.6 docs/UiNodeAttributes.md
ory-client-1.4.5 docs/UiNodeAttributes.md
ory-client-1.4.4 docs/UiNodeAttributes.md
ory-client-1.4.3 docs/UiNodeAttributes.md
ory-client-1.4.2 docs/UiNodeAttributes.md
ory-client-1.4.1 docs/UiNodeAttributes.md
ory-client-1.4.0 docs/UiNodeAttributes.md
ory-client-1.3.0 docs/UiNodeAttributes.md
ory-client-1.2.17 docs/UiNodeAttributes.md
ory-client-1.2.16 docs/UiNodeAttributes.md
ory-client-1.2.15 docs/UiNodeAttributes.md
ory-client-1.2.14 docs/UiNodeAttributes.md