class OTP::HOTP

Attributes

count[RW]

Public Class Methods

new(*args) click to toggle source
Calls superclass method OTP::Base::new
# File lib/otp/hotp.rb, line 7
def initialize(*args)
  super
  self.count = 0
end

Public Instance Methods

extract_uri_params(params) click to toggle source
Calls superclass method OTP::Base#extract_uri_params
# File lib/otp/hotp.rb, line 20
def extract_uri_params(params)
  super
  self.count = (params["count"] || count).to_i
end
moving_factor() click to toggle source
# File lib/otp/hotp.rb, line 12
def moving_factor
  return count
end
uri_params() click to toggle source
Calls superclass method OTP::Base#uri_params
# File lib/otp/hotp.rb, line 16
def uri_params
  return super.merge(count: count)
end