Sha256: 4e5b9c2e36e6dc0ef2cb02875f87fccfb1bec0bcdc0f12aa1a7a17895db0c2f6

Contents?: true

Size: 616 Bytes

Versions: 11

Compression:

Stored size: 616 Bytes

Contents

module Seko
  class Product

    def self.supplier
      {
        "SupplierCode"        => Seko.config[:supplier_code],
        "SupplierDescription" => Seko.config[:supplier_description],
        "UOM"                 => Seko.config[:supplier_uom]
      }
    end

    def self.format(attributes)
      {
        "Request" => {
          "List" => {
            "SupplierMapping" => supplier
          },
          "ProductMaster" => {
            "ProductCode"        => attributes[:upc],
            "ProductDescription" => Filter.parse(attributes[:description])
          }
        }
      }
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
seko-0.0.11 lib/seko/product.rb
seko-0.0.10 lib/seko/product.rb
seko-0.0.9 lib/seko/product.rb
seko-0.0.8 lib/seko/product.rb
seko-0.0.7 lib/seko/product.rb
seko-0.0.6 lib/seko/product.rb
seko-0.0.5 lib/seko/product.rb
seko-0.0.4 lib/seko/product.rb
seko-0.0.3 lib/seko/product.rb
seko-0.0.2 lib/seko/product.rb
seko-0.0.1 lib/seko/product.rb