Module: Cassandra::CustomData::ClassMethods

Defined in:
lib/cassandra/custom_data.rb

Instance Method Summary collapse

Instance Method Details

#deserialize(data) ⇒ Object

Deserialize the given data into an instance of this domain object class.

Raises:



40
41
42
# File 'lib/cassandra/custom_data.rb', line 40

def deserialize(data)
  raise NotImplementedError, "#{self.class} must implement the :deserialize class method"
end

#typeCassandra::Types::Custom

Returns the custom type that this class represents.

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/cassandra/custom_data.rb', line 32

def type
  raise NotImplementedError, "#{self.class} must implement the :type class method"
end