Class: WorkOS::AuthenticationChallengesVerifyRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/multi_factor_auth/authentication_challenges_verify_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  code: :code
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AuthenticationChallengesVerifyRequest

Returns a new instance of AuthenticationChallengesVerifyRequest.



13
14
15
16
# File 'lib/workos/multi_factor_auth/authentication_challenges_verify_request.rb', line 13

def initialize(json)
  hash = self.class.normalize(json)
  @code = hash[:code]
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



11
12
13
# File 'lib/workos/multi_factor_auth/authentication_challenges_verify_request.rb', line 11

def code
  @code
end