Class: RightSupport::Data::UUID::SimpleUUID
- Inherits:
-
Implementation
- Object
- Implementation
- RightSupport::Data::UUID::SimpleUUID
- Defined in:
- lib/right_support/data/uuid.rb
Overview
An implementation that uses the SimpleUUID gem.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize ⇒ SimpleUUID
constructor
A new instance of SimpleUUID.
Methods inherited from Implementation
Constructor Details
#initialize ⇒ SimpleUUID
Returns a new instance of SimpleUUID.
76 77 78 79 |
# File 'lib/right_support/data/uuid.rb', line 76 def initialize require 'simple_uuid' generate end |
Instance Method Details
#generate ⇒ Object
81 82 83 |
# File 'lib/right_support/data/uuid.rb', line 81 def generate ::SimpleUUID::UUID.new.to_guid end |