Sha256: b6e70fcac755c4726008f65b5c19a366ea146ac4c884e609aec0f838c101ce8f

Contents?: true

Size: 467 Bytes

Versions: 7

Compression:

Stored size: 467 Bytes

Contents

module WashOut
  module Model
    def wash_out_param_map
      types = {
        :text      => :string,
        :float     => :double,
        :decimal   => :double,
        :timestamp => :string
      }
      map = {}

      columns_hash.each do |key, column|
        type = column.type
        type = types[type] if types.has_key?(type)
        map[key] = type
      end

      map
    end

    def wash_out_param_name
      return name.underscore
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
wash_out-0.5.4 lib/wash_out/model.rb
wash_out-0.5.3 lib/wash_out/model.rb
nogara-wash_out-0.5.2 lib/wash_out/model.rb
wash_out-0.5.2 lib/wash_out/model.rb
wash_out-0.4.2 lib/wash_out/model.rb
wash_out-0.4.1 lib/wash_out/model.rb
wash_out-0.4.0 lib/wash_out/model.rb