Class: MultiFactorAuth::TOTP
- Inherits:
-
Object
- Object
- MultiFactorAuth::TOTP
- Extended by:
- Forwardable, Methods
- Defined in:
- lib/multi_factor_auth/totp.rb
Instance Method Summary collapse
-
#initialize(base32, options = {}) ⇒ TOTP
constructor
A new instance of TOTP.
Methods included from Methods
extended, generate_qr_code, generate_secret, random_base32
Constructor Details
#initialize(base32, options = {}) ⇒ TOTP
Returns a new instance of TOTP.
13 14 15 |
# File 'lib/multi_factor_auth/totp.rb', line 13 def initialize base32, = {} @instance = ROTP::TOTP.new base32, end |