Class: Auxilium::UuidModifier

Inherits:
Object
  • Object
show all
Defined in:
lib/auxilium/uuid_modifier.rb

Class Method Summary collapse

Class Method Details

.append(uuid, value) ⇒ Object



9
10
11
# File 'lib/auxilium/uuid_modifier.rb', line 9

def append(uuid, value)
  "#{minimize(uuid)}/#{value}"
end

.minimize(uuid) ⇒ Object



5
6
7
# File 'lib/auxilium/uuid_modifier.rb', line 5

def minimize(uuid)
  uuid.delete('-')
end

.reconstitute(id) ⇒ Object



13
14
15
# File 'lib/auxilium/uuid_modifier.rb', line 13

def reconstitute(id)
  "#{id[0..7]}-#{id[8..11]}-#{id[12..15]}-#{id[16..19]}-#{id[20..31]}"
end