class Seko::Product

Public Class Methods

format(attributes) click to toggle source
# File lib/seko/product.rb, line 12
def self.format(attributes)
  {
    "Request" => {
      "List" => {
        "SupplierMapping" => supplier
      },
      "ProductMaster" => {
        "ProductCode"        => attributes[:upc],
        "ProductDescription" => Filter.parse(attributes[:description])
      }
    }
  }
end
supplier() click to toggle source
# File lib/seko/product.rb, line 4
def self.supplier
  {
    "SupplierCode"        => Seko.config[:supplier_code],
    "SupplierDescription" => Seko.config[:supplier_description],
    "UOM"                 => Seko.config[:supplier_uom]
  }
end