giovannelli/cassandra_object

View on GitHub
lib/cassandra_object/type.rb

Summary

Maintainability
A
0 mins
Test Coverage
module CassandraObject
  class Type
    cattr_accessor :attribute_types
    self.attribute_types = {}.with_indifferent_access

    class << self
      def register(name, coder)
        attribute_types[name] = coder
      end

      def get_coder(name)
        attribute_types[name]
      end
    end
  end
end