Class: RightSupport::Data::UUID::UUIDTools1

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

Overview

An implementation that uses UUIDTools v1.

Instance Method Summary collapse

Methods inherited from Implementation

available, default, inherited

Constructor Details

#initializeUUIDTools1

Returns a new instance of UUIDTools1.



88
89
90
91
# File 'lib/right_support/data/uuid.rb', line 88

def initialize
  require 'uuidtools'
  generate
end

Instance Method Details

#generateObject



93
94
95
# File 'lib/right_support/data/uuid.rb', line 93

def generate
  ::UUID.timestamp_create.to_s
end