Class: RightSupport::Data::UUID::SimpleUUID

Inherits:
Implementation show all
Defined in:
lib/right_support/data/uuid.rb

Overview

An implementation that uses the SimpleUUID gem.

Instance Method Summary collapse

Methods inherited from Implementation

available, default, inherited

Constructor Details

#initializeSimpleUUID

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

#generateObject



81
82
83
# File 'lib/right_support/data/uuid.rb', line 81

def generate
  ::SimpleUUID::UUID.new.to_guid
end