Sha256: 5202b2e0aa7ebac0d032c5dfd370b7b83435ae3bc03ccdfb06b91cc6803ed97c

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

module FastshopCatalog
  class ProductService < FastshopCatalog::BaseService

    def initialize
      @service = 'FastServices.WsConsultaProduto/ConsultaProduto.svc/service'
      @interface = 'IConsultaProduto'
      @soap_method = :busca_produto
      @return_key = 'ProdutoDados'
      super
    end

    def search(contract_code, sku)
      service_invoker('contrato' => contract_code, 'sku' => sku)
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fastshop_catalog-0.0.7 lib/fastshop_catalog/product_service.rb
fastshop_catalog-0.0.6 lib/fastshop_catalog/product_service.rb
fastshop_catalog-0.0.5 lib/fastshop_catalog/product_service.rb
fastshop_catalog-0.0.4 lib/fastshop_catalog/product_service.rb
fastshop_catalog-0.0.3 lib/fastshop_catalog/product_service.rb
fastshop_catalog-0.0.2 lib/fastshop_catalog/product_service.rb
fastshop_catalog-0.0.1 lib/fastshop_catalog/product_service.rb