Sha256: 9ca78355045787eff004d6c1957bdbe7ac5b172a7e173b4f3885e4b109c6ff2a

Contents?: true

Size: 952 Bytes

Versions: 10

Compression:

Stored size: 952 Bytes

Contents

require 'cassandra_object/types'

CassandraObject::Base.register_attribute_type(:integer, Integer, CassandraObject::IntegerType)
CassandraObject::Base.register_attribute_type(:float, Float, CassandraObject::FloatType)
CassandraObject::Base.register_attribute_type(:date, Date, CassandraObject::DateType)
CassandraObject::Base.register_attribute_type(:time, Time, CassandraObject::TimeType)
CassandraObject::Base.register_attribute_type(:time_with_zone, ActiveSupport::TimeWithZone, CassandraObject::TimeWithZoneType)
CassandraObject::Base.register_attribute_type(:string, String, CassandraObject::UTF8StringType) #This could be changed to StringType to support non-utf8 strings
CassandraObject::Base.register_attribute_type(:utf8, String, CassandraObject::UTF8StringType)
CassandraObject::Base.register_attribute_type(:hash, Hash, CassandraObject::HashType)
CassandraObject::Base.register_attribute_type(:boolean, Object, CassandraObject::BooleanType)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.0.0 lib/cassandra_object/type_registration.rb
gotime-cassandra_object-0.9.1 lib/cassandra_object/type_registration.rb
gotime-cassandra_object-0.9.0 lib/cassandra_object/type_registration.rb
gotime-cassandra_object-0.8.7 lib/cassandra_object/type_registration.rb
gotime-cassandra_object-0.8.6 lib/cassandra_object/type_registration.rb
gotime-cassandra_object-0.8.5 lib/cassandra_object/type_registration.rb
gotime-cassandra_object-0.8.4 lib/cassandra_object/type_registration.rb
gotime-cassandra_object-0.8.3 lib/cassandra_object/type_registration.rb
gotime-cassandra_object-0.8.2 lib/cassandra_object/type_registration.rb
gotime-cassandra_object-0.8.1 lib/cassandra_object/type_registration.rb