Sha256: 9b98eb7041eb02ec3384592789e60849baf15363ec39af9ba64777fe544642bb

Contents?: true

Size: 310 Bytes

Versions: 118

Compression:

Stored size: 310 Bytes

Contents

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

Version data entries

118 entries across 118 versions & 3 rubygems

Version Path
extendi-cassandra_object-1.1.1 lib/cassandra_object/type.rb
extendi-cassandra_object-1.1.0 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.20 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.19 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.18 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.17 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.16 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.15 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.14 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.13 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.12 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.11 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.10 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.9 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.8 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.7 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.6 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.5 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.4 lib/cassandra_object/type.rb
extendi-cassandra_object-1.0.1 lib/cassandra_object/type.rb