Class: FDB::Tuple::UUID
- Inherits:
-
Object
- Object
- FDB::Tuple::UUID
- Defined in:
- lib/fdbtuple.rb
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #data ⇒ Object
-
#initialize(data) ⇒ UUID
constructor
A new instance of UUID.
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#<=>(other) ⇒ Object
56 57 58 |
# File 'lib/fdbtuple.rb', line 56 def <=> (other) self.data <=> other.data end |
#data ⇒ Object
53 54 55 |
# File 'lib/fdbtuple.rb', line 53 def data @data end |
#to_s ⇒ Object
59 60 61 |
# File 'lib/fdbtuple.rb', line 59 def to_s self.data.each_byte.map { |b| b.to_s(16) } .join end |