Class: FastshopCatalog::ProductService

Inherits:
BaseService show all
Defined in:
lib/fastshop_catalog/product_service.rb

Constant Summary

Constants inherited from BaseService

BaseService::AUX_LOG

Instance Method Summary collapse

Methods inherited from BaseService

#action, camelize, #encrypt, #service_url

Constructor Details

#initializeProductService

Returns a new instance of ProductService.



4
5
6
7
8
9
10
# File 'lib/fastshop_catalog/product_service.rb', line 4

def initialize
  @service = :consulta_produto
  @interface = 'IConsultaProduto'
  @soap_method = :busca_produto
  @return_key = 'ProdutoDados'
  super
end

Instance Method Details

#search(contract_code, sku) ⇒ Object



12
13
14
# File 'lib/fastshop_catalog/product_service.rb', line 12

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