Class: FastshopCatalog::ExternalDneService

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

#initializeExternalDneService

Returns a new instance of ExternalDneService.



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

def initialize
  @service = :consulta_dne_externo
  @interface = 'IConsultaDneExterno'
  @soap_method = :consultar
  @return_key = 'Dne'
  super
end

Instance Method Details

#query(contract_code, zip_code) ⇒ Object



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

def query(contract_code, zip_code)
  service_invoker('cep' => zip_code, 'contrato' => contract_code)
end