module Cassandra::CustomData::ClassMethods
Public Instance Methods
deserialize(data)
click to toggle source
Deserialize the given data into an instance of this domain object class. @param data [String] byte-array representation of a column value of this custom type. @return An instance of the domain object class. @raise [Cassandra::Errors::DecodingError] upon failure.
# File lib/cassandra/custom_data.rb 40 def deserialize(data) 41 raise NotImplementedError, "#{self.class} must implement the :deserialize class method" 42 end
type()
click to toggle source
@return [Cassandra::Types::Custom] the custom type that this class represents.
# File lib/cassandra/custom_data.rb 32 def type 33 raise NotImplementedError, "#{self.class} must implement the :type class method" 34 end