Class: RightSupport::Data::UUID::UUIDGem
- Inherits:
-
Implementation
- Object
- Implementation
- RightSupport::Data::UUID::UUIDGem
- Defined in:
- lib/right_support/data/uuid.rb
Overview
An implementation that uses the “uuid” gem.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize ⇒ UUIDGem
constructor
A new instance of UUIDGem.
Methods inherited from Implementation
Constructor Details
#initialize ⇒ UUIDGem
Returns a new instance of UUIDGem.
112 113 114 115 |
# File 'lib/right_support/data/uuid.rb', line 112 def initialize require 'uuid' generate end |
Instance Method Details
#generate ⇒ Object
117 118 119 |
# File 'lib/right_support/data/uuid.rb', line 117 def generate ::UUID.new.to_s end |