Class: CassandraObject::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/cassandra_object/type.rb

Defined Under Namespace

Classes: TypeMapping

Class Method Summary collapse

Class Method Details

.get_mapping(name) ⇒ Object



14
15
16
# File 'lib/cassandra_object/type.rb', line 14

def get_mapping(name)
  attribute_types[name]
end

.register(name, expected_type, converter) ⇒ Object



10
11
12
# File 'lib/cassandra_object/type.rb', line 10

def register(name, expected_type, converter)
  attribute_types[name] = TypeMapping.new(expected_type, converter)
end