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