Sha256: 6cfa4992d7554dba36a7f1843403eff0b7b08a60d2ab09ae2b00ebf554c550bb
Contents?: true
Size: 1003 Bytes
Versions: 15
Compression:
Stored size: 1003 Bytes
Contents
# OryKratosClient::UiNodeAttributes ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::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' OryKratosClient::UiNodeAttributes.build(data) # => #<UiNodeAnchorAttributes:0x00007fdd4aab02a0> OryKratosClient::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