Class: CassandraModel::TimeuuidType

Inherits:
Object
  • Object
show all
Defined in:
lib/cassandra-model/types.rb

Class Method Summary collapse

Class Method Details

.dump(v) ⇒ Object



104
105
106
# File 'lib/cassandra-model/types.rb', line 104

def self.dump(v)
  v && SimpleUUID::UUID.new(v).to_s
end

.load(v) ⇒ Object



108
109
110
# File 'lib/cassandra-model/types.rb', line 108

def self.load(v)
  v && SimpleUUID::UUID.new(v)
end