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