Class: Ruote::MnemoWfidGenerator

Inherits:
WfidGenerator show all
Defined in:
lib/ruote/id/mnemo_wfid_generator.rb

Instance Method Summary collapse

Methods inherited from WfidGenerator

#initialize

Constructor Details

This class inherits a constructor from Ruote::WfidGenerator

Instance Method Details

#generateObject



33
34
35
36
37
38
39
40
# File 'lib/ruote/id/mnemo_wfid_generator.rb', line 33

def generate

  raw = get_raw

  m = ((raw.to_f % 60 * 60 * 24) * 1000).to_i

  "#{raw.strftime('%Y%m%d')}-#{Rufus::Mnemo.from_integer(m)}"
end