Class: RightSupport::Data::UUID::UUIDTools2

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

Overview

An implementation that uses UUIDTools v2.

Instance Method Summary collapse

Methods inherited from Implementation

available, default, inherited

Constructor Details

#initializeUUIDTools2

Returns a new instance of UUIDTools2.



100
101
102
103
# File 'lib/right_support/data/uuid.rb', line 100

def initialize
  require 'uuidtools'
  generate
end

Instance Method Details

#generateObject



105
106
107
# File 'lib/right_support/data/uuid.rb', line 105

def generate
  ::UUIDTools::UUID.timestamp_create.to_s
end