Module: OryClient::ContinueWith
- Defined in:
- lib/ory-client/models/continue_with.rb
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
47 48 49 50 51 52 53 54 55 |
# File 'lib/ory-client/models/continue_with.rb', line 47 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)
35 36 37 38 39 40 41 42 |
# File 'lib/ory-client/models/continue_with.rb', line 35 def openapi_discriminator_mapping { :'set_ory_session_token' => :'ContinueWithSetOrySessionToken', :'show_recovery_ui' => :'ContinueWithRecoveryUi', :'show_settings_ui' => :'ContinueWithSettingsUi', :'show_verification_ui' => :'ContinueWithVerificationUi' } end |
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3)
30 31 32 |
# File 'lib/ory-client/models/continue_with.rb', line 30 def openapi_discriminator_name :'action' end |
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3)
20 21 22 23 24 25 26 27 |
# File 'lib/ory-client/models/continue_with.rb', line 20 def openapi_one_of [ :'ContinueWithRecoveryUi', :'ContinueWithSetOrySessionToken', :'ContinueWithSettingsUi', :'ContinueWithVerificationUi' ] end |