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