Class: WorkOS::AuthenticationFactorEnrolledTotp
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthenticationFactorEnrolledTotp
- Defined in:
- lib/workos/multi_factor_auth/authentication_factor_enrolled_totp.rb
Constant Summary collapse
- HASH_ATTRS =
{ issuer: :issuer, user: :user, secret: :secret, qr_code: :qr_code, uri: :uri }.freeze
Instance Attribute Summary collapse
-
#issuer ⇒ Object
Returns the value of attribute issuer.
-
#qr_code ⇒ Object
Returns the value of attribute qr_code.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#user ⇒ Object
Returns the value of attribute user.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuthenticationFactorEnrolledTotp
constructor
A new instance of AuthenticationFactorEnrolledTotp.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuthenticationFactorEnrolledTotp
Returns a new instance of AuthenticationFactorEnrolledTotp.
22 23 24 25 26 27 28 29 |
# File 'lib/workos/multi_factor_auth/authentication_factor_enrolled_totp.rb', line 22 def initialize(json) hash = self.class.normalize(json) @issuer = hash[:issuer] @user = hash[:user] @secret = hash[:secret] @qr_code = hash[:qr_code] @uri = hash[:uri] end |
Instance Attribute Details
#issuer ⇒ Object
Returns the value of attribute issuer.
15 16 17 |
# File 'lib/workos/multi_factor_auth/authentication_factor_enrolled_totp.rb', line 15 def issuer @issuer end |
#qr_code ⇒ Object
Returns the value of attribute qr_code.
15 16 17 |
# File 'lib/workos/multi_factor_auth/authentication_factor_enrolled_totp.rb', line 15 def qr_code @qr_code end |
#secret ⇒ Object
Returns the value of attribute secret.
15 16 17 |
# File 'lib/workos/multi_factor_auth/authentication_factor_enrolled_totp.rb', line 15 def secret @secret end |
#uri ⇒ Object
Returns the value of attribute uri.
15 16 17 |
# File 'lib/workos/multi_factor_auth/authentication_factor_enrolled_totp.rb', line 15 def uri @uri end |
#user ⇒ Object
Returns the value of attribute user.
15 16 17 |
# File 'lib/workos/multi_factor_auth/authentication_factor_enrolled_totp.rb', line 15 def user @user end |