Module: OryClient::UpdateRegistrationFlowBody
- Defined in:
- lib/ory-client/models/update_registration_flow_body.rb
Overview
Update Registration Request Body
Class Method Summary collapse
-
.build(data) ⇒ Object
Builds the object.
-
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3).
-
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3).
-
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3).
Class Method Details
.build(data) ⇒ Object
Builds the object
48 49 50 51 52 53 54 55 56 |
# File 'lib/ory-client/models/update_registration_flow_body.rb', line 48 def build(data) discriminator_value = data[openapi_discriminator_name] return nil if discriminator_value.nil? klass = openapi_discriminator_mapping[discriminator_value.to_s.to_sym] return nil unless klass OryClient.const_get(klass).build_from_hash(data) end |
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3)
36 37 38 39 40 41 42 43 |
# File 'lib/ory-client/models/update_registration_flow_body.rb', line 36 def openapi_discriminator_mapping { :'code' => :'UpdateRegistrationFlowWithCodeMethod', :'oidc' => :'UpdateRegistrationFlowWithOidcMethod', :'password' => :'UpdateRegistrationFlowWithPasswordMethod', :'webauthn' => :'UpdateRegistrationFlowWithWebAuthnMethod' } end |
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3)
31 32 33 |
# File 'lib/ory-client/models/update_registration_flow_body.rb', line 31 def openapi_discriminator_name :'method' end |
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3)
21 22 23 24 25 26 27 28 |
# File 'lib/ory-client/models/update_registration_flow_body.rb', line 21 def openapi_one_of [ :'UpdateRegistrationFlowWithCodeMethod', :'UpdateRegistrationFlowWithOidcMethod', :'UpdateRegistrationFlowWithPasswordMethod', :'UpdateRegistrationFlowWithWebAuthnMethod' ] end |