Sha256: c6facddac2ef46ca74ee680116bd4458da937a3201788547bee7d041c81ce643
Contents?: true
Size: 439 Bytes
Versions: 118
Compression:
Stored size: 439 Bytes
Contents
module CassandraObject class Type class TypeMapping < Struct.new(:expected_type, :converter) end cattr_accessor :attribute_types self.attribute_types = {}.with_indifferent_access class << self def register(name, expected_type, converter) attribute_types[name] = TypeMapping.new(expected_type, converter) end def get_mapping(name) attribute_types[name] end end end end
Version data entries
118 entries across 118 versions & 2 rubygems