Module: Marconi::GUIDGenerator
Instance Method Summary collapse
Instance Method Details
#next_guid ⇒ Object
9 10 11 12 13 |
# File 'lib/marconi/guid_generator.rb', line 9 def next_guid shortname = Marconi.short_application_name[0,2] uid = UUIDTools::UUID.random_create.to_i.to_s(36).rjust(25,'0') "#{shortname}-#{uid}" end |