Class: FastshopCatalog::ProductService
- Inherits:
-
BaseService
- Object
- BaseService
- FastshopCatalog::ProductService
- Defined in:
- lib/fastshop_catalog/product_service.rb
Constant Summary
Constants inherited from BaseService
Instance Method Summary collapse
-
#initialize ⇒ ProductService
constructor
A new instance of ProductService.
- #search(contract_code, sku) ⇒ Object
Methods inherited from BaseService
#action, camelize, #encrypt, #service_url
Constructor Details
#initialize ⇒ ProductService
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 |