Class: WorkOS::AuthenticationChallengeVerifyResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthenticationChallengeVerifyResponse
- Defined in:
- lib/workos/multi_factor_auth/authentication_challenge_verify_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ challenge: :challenge, valid: :valid }.freeze
Instance Attribute Summary collapse
-
#challenge ⇒ Object
Returns the value of attribute challenge.
-
#valid ⇒ Object
Returns the value of attribute valid.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuthenticationChallengeVerifyResponse
constructor
A new instance of AuthenticationChallengeVerifyResponse.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuthenticationChallengeVerifyResponse
Returns a new instance of AuthenticationChallengeVerifyResponse.
16 17 18 19 20 |
# File 'lib/workos/multi_factor_auth/authentication_challenge_verify_response.rb', line 16 def initialize(json) hash = self.class.normalize(json) @challenge = hash[:challenge] ? WorkOS::AuthenticationChallenge.new(hash[:challenge]) : nil @valid = hash[:valid] end |
Instance Attribute Details
#challenge ⇒ Object
Returns the value of attribute challenge.
12 13 14 |
# File 'lib/workos/multi_factor_auth/authentication_challenge_verify_response.rb', line 12 def challenge @challenge end |
#valid ⇒ Object
Returns the value of attribute valid.
12 13 14 |
# File 'lib/workos/multi_factor_auth/authentication_challenge_verify_response.rb', line 12 def valid @valid end |