Sha256: cab98b34940f8ba4debca50fbe40eb68cfd4e4c8bfa53c1602267e30c86497fb
Contents?: true
Size: 1.6 KB
Versions: 7
Compression:
Stored size: 1.6 KB
Contents
# OryKratosClient::SubmitSelfServiceLoginFlowBody ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceLoginFlowBody.openapi_one_of # => # [ # :'SubmitSelfServiceLoginFlowWithOidcMethodBody', # :'SubmitSelfServiceLoginFlowWithPasswordMethodBody' # ] ``` ### `openapi_discriminator_name` Returns the discriminator's property name. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceLoginFlowBody.openapi_discriminator_name # => :'method' ``` ### `openapi_discriminator_name` Returns the discriminator's mapping. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceLoginFlowBody.openapi_discriminator_mapping # => # { # :'oidc' => :'SubmitSelfServiceLoginFlowWithOidcMethodBody', # :'password' => :'SubmitSelfServiceLoginFlowWithPasswordMethodBody' # } ### build Find the appropriate object from the `openapi_one_of` list and casts the data into it. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceLoginFlowBody.build(data) # => #<SubmitSelfServiceLoginFlowWithOidcMethodBody:0x00007fdd4aab02a0> OryKratosClient::SubmitSelfServiceLoginFlowBody.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `SubmitSelfServiceLoginFlowWithOidcMethodBody` - `SubmitSelfServiceLoginFlowWithPasswordMethodBody` - `nil` (if no type matches)
Version data entries
7 entries across 7 versions & 1 rubygems