Class: YubiOATH::Calculate::Response::Code

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/yubioath/calculate.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



29
30
31
# File 'lib/yubioath/calculate.rb', line 29

def to_s
  (response % 10**digits).to_s.rjust(digits, '0')
end