Sha256: 9f585b97fc2b30ef835b0a49f1b0b14e01cb817b127e96a47c8fd36f0386ee28
Contents?: true
Size: 245 Bytes
Versions: 2
Compression:
Stored size: 245 Bytes
Contents
module FakePin class Token def self.generate(prefix) new(prefix).generate end def initialize(prefix) @prefix = prefix end def generate "#{@prefix}_#{Time.now.to_f.to_s.gsub(/\./, '')}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fake_pin-0.2 | lib/fake_pin/token.rb |
fake_pin-0.0.1 | lib/fake_pin/token.rb |