Class: QRPC::Generator::UUID
- Inherits:
-
Object
- Object
- QRPC::Generator::UUID
- Defined in:
- lib/qrpc/generator/uuid.rb
Overview
UUID generator.
Instance Method Summary collapse
-
#generate(object = nil) ⇒ String
(also: #generate!)
Generates UUID as ID for given object.
Instance Method Details
#generate(object = nil) ⇒ String Also known as: generate!
Generates UUID as ID for given object.
33 34 35 |
# File 'lib/qrpc/generator/uuid.rb', line 33 def generate(object = nil) ::UUID.generate(:compact).to_sym end |