Sha256: 595ddc456f0b4cbb921ef254be79ad2eaecdc7dcab0a332bf5afeaf49335b318

Contents?: true

Size: 381 Bytes

Versions: 5

Compression:

Stored size: 381 Bytes

Contents

module CassandraObject
  module Types
    class BaseType
      attr_accessor :options
      def initialize(options = {})
        @options = options
      end

      def ignore_nil?
        true
      end

      def encode(value)
        value.to_s
      end

      def decode(str)
        str
      end

      def wrap(record, name, value)
        value
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.6.4 lib/cassandra_object/types/base_type.rb
gotime-cassandra_object-2.6.3 lib/cassandra_object/types/base_type.rb
gotime-cassandra_object-2.6.2 lib/cassandra_object/types/base_type.rb
gotime-cassandra_object-2.6.1 lib/cassandra_object/types/base_type.rb
gotime-cassandra_object-2.6.0 lib/cassandra_object/types/base_type.rb