Class: RightSupport::Data::UUID::UUIDGem

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

Overview

An implementation that uses the “uuid” gem.

Instance Method Summary collapse

Methods inherited from Implementation

available, default, inherited

Constructor Details

#initializeUUIDGem

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

#generateObject



117
118
119
# File 'lib/right_support/data/uuid.rb', line 117

def generate
  ::UUID.new.to_s
end