Sha256: 8e1de72d2fb410ba4dce09df2272efbffd708ab17c43f2af1da1a78fdbba0898
Contents?: true
Size: 410 Bytes
Versions: 7
Compression:
Stored size: 410 Bytes
Contents
require "otp/base" module OTP class HOTP < OTP::Base attr_accessor :count def initialize(*args) super self.count = 0 end def moving_factor return count end def type_specific_uri_params return {count: count} end def extract_type_specific_uri_params(query) if value = query["count"] self.count = value.to_i end end end end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
otp-0.0.9 | lib/otp/hotp.rb |
otp-0.0.8 | lib/otp/hotp.rb |
otp-0.0.7 | lib/otp/hotp.rb |
otp-0.0.6 | lib/otp/hotp.rb |
otp-0.0.5 | lib/otp/hotp.rb |
otp-0.0.4 | lib/otp/hotp.rb |
otp-0.0.3 | lib/otp/hotp.rb |