Module: Cassandra::CustomData::ClassMethods
- Defined in:
- lib/cassandra/custom_data.rb
Instance Method Summary collapse
-
#deserialize(data) ⇒ Object
Deserialize the given data into an instance of this domain object class.
-
#type ⇒ Cassandra::Types::Custom
The custom type that this class represents.
Instance Method Details
#deserialize(data) ⇒ Object
Deserialize the given data into an instance of this domain object class.
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 |
#type ⇒ Cassandra::Types::Custom
Returns the custom type that this class represents.
32 33 34 |
# File 'lib/cassandra/custom_data.rb', line 32 def type raise NotImplementedError, "#{self.class} must implement the :type class method" end |