Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/iugusdk/uuid_operators_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_uuidObject



2
3
4
5
# File 'lib/iugusdk/uuid_operators_extensions.rb', line 2

def to_uuid
  return UUIDTools::UUID.parse_raw self if self.size == 16
  UUIDTools::UUID.parse_hexdigest( self.gsub("-","").upcase )
end