Class: WorkOS::EnrollUserAuthenticationFactor
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::EnrollUserAuthenticationFactor
- Defined in:
- lib/workos/multi_factor_auth/enroll_user_authentication_factor.rb
Constant Summary collapse
- HASH_ATTRS =
{ type: :type, totp_issuer: :totp_issuer, totp_user: :totp_user, totp_secret: :totp_secret }.freeze
Instance Attribute Summary collapse
-
#totp_issuer ⇒ Object
Returns the value of attribute totp_issuer.
-
#totp_secret ⇒ Object
Returns the value of attribute totp_secret.
-
#totp_user ⇒ Object
Returns the value of attribute totp_user.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ EnrollUserAuthenticationFactor
constructor
A new instance of EnrollUserAuthenticationFactor.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ EnrollUserAuthenticationFactor
Returns a new instance of EnrollUserAuthenticationFactor.
20 21 22 23 24 25 26 |
# File 'lib/workos/multi_factor_auth/enroll_user_authentication_factor.rb', line 20 def initialize(json) hash = self.class.normalize(json) @type = hash[:type] @totp_issuer = hash[:totp_issuer] @totp_user = hash[:totp_user] @totp_secret = hash[:totp_secret] end |
Instance Attribute Details
#totp_issuer ⇒ Object
Returns the value of attribute totp_issuer.
14 15 16 |
# File 'lib/workos/multi_factor_auth/enroll_user_authentication_factor.rb', line 14 def totp_issuer @totp_issuer end |
#totp_secret ⇒ Object
Returns the value of attribute totp_secret.
14 15 16 |
# File 'lib/workos/multi_factor_auth/enroll_user_authentication_factor.rb', line 14 def totp_secret @totp_secret end |
#totp_user ⇒ Object
Returns the value of attribute totp_user.
14 15 16 |
# File 'lib/workos/multi_factor_auth/enroll_user_authentication_factor.rb', line 14 def totp_user @totp_user end |
#type ⇒ Object
Returns the value of attribute type.
14 15 16 |
# File 'lib/workos/multi_factor_auth/enroll_user_authentication_factor.rb', line 14 def type @type end |