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