Class: FastshopCatalog::CatalogService

Inherits:
BaseService show all
Defined in:
lib/fastshop_catalog/catalog_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

#initializeCatalogService

Returns a new instance of CatalogService.



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

def initialize
  @service = :catalogo
  @interface = 'ICatalogo'
  @soap_method = :busca_catalogo
  @return_key = 'Lista'
  super
end

Instance Method Details

#search(contract_code) ⇒ Object



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

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