Class: UuidAttribute::UUID
- Inherits:
-
Object
- Object
- UuidAttribute::UUID
- Defined in:
- lib/uuid_attribute/uuid.rb
Overview
UUID Attribute
Instance Method Summary collapse
- #hex ⇒ Object
-
#initialize(value) ⇒ UUID
constructor
A new instance of UUID.
- #raw ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#hex ⇒ Object
14 15 16 |
# File 'lib/uuid_attribute/uuid.rb', line 14 def hex @hex end |
#raw ⇒ Object
18 19 20 |
# File 'lib/uuid_attribute/uuid.rb', line 18 def raw UuidAttribute::Utils.raw_bytes(@hex) end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/uuid_attribute/uuid.rb', line 10 def to_s @shorten end |