Sha256: e5d7b68eec3f0bd07d61eca9ccc7932f395ef903ad0224bf7c661c58cff35627

Contents?: true

Size: 1.58 KB

Versions: 130

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
# =>
# {
#   :'anchor' => :'UiNodeAnchorAttributes',
#   :'image' => :'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

130 entries across 130 versions & 1 rubygems

Version Path
ory-client-0.0.1.alpha169 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha168 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha167 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha166 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha165 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha164 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha163 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha162 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha161 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha160 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha159 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha158 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha157 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha156 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha155 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha154 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha153 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha152 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha151 docs/UiNodeAttributes.md
ory-client-0.0.1.alpha150 docs/UiNodeAttributes.md