Class: YubiOATH::CalculateAll::Response::Code

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

Instance Method Summary collapse

Instance Method Details

#to_sObject



25
26
27
# File 'lib/yubioath/calculate_all.rb', line 25

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