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