class FDB::Tuple::UUID

Public Class Methods

new(data) click to toggle source
# File lib/fdbtuple.rb, line 47
def initialize(data)
  if data.length != 16
    raise Error.new(2268) # invalid_uuid_size
  end
  @data=data.slice(0,16)
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/fdbtuple.rb, line 56
def <=> (other)
  self.data <=> other.data
end
data() click to toggle source
# File lib/fdbtuple.rb, line 53
def data
  @data
end
to_s() click to toggle source
# File lib/fdbtuple.rb, line 59
def to_s
  self.data.each_byte.map { |b| b.to_s(16) } .join
end