Sha256: bc1e46bad93ae6aef8afc24d927e5553705dab101874e2c7b82ebff0c1ea32f7

Contents?: true

Size: 356 Bytes

Versions: 13

Compression:

Stored size: 356 Bytes

Contents

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

      def encode(value)
        value
      end

      def decode(str)
        str
      end

      def typecast(value)
        value
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
superstore-2.4.4 lib/superstore/types/base_type.rb
superstore-2.4.3 lib/superstore/types/base_type.rb
superstore-2.4.2 lib/superstore/types/base_type.rb
superstore-2.4.1 lib/superstore/types/base_type.rb
superstore-2.4.0 lib/superstore/types/base_type.rb
superstore-2.3.0 lib/superstore/types/base_type.rb
superstore-2.2.0 lib/superstore/types/base_type.rb
superstore-2.1.3 lib/superstore/types/base_type.rb
superstore-2.1.2 lib/superstore/types/base_type.rb
superstore-2.1.1 lib/superstore/types/base_type.rb
superstore-2.1.0 lib/superstore/types/base_type.rb
superstore-2.0.1 lib/superstore/types/base_type.rb
superstore-2.0.0 lib/superstore/types/base_type.rb