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