Class: CorreiosSigep::LogisticReverse::RequestCollectNumber
- Inherits:
-
BaseClient
- Object
- BaseClient
- CorreiosSigep::LogisticReverse::RequestCollectNumber
show all
- Defined in:
- lib/correios_sigep/logistic_reverse/request_collect_number.rb
Constant Summary
Constants inherited
from BaseClient
BaseClient::DEFAULT_TIMEOUT
Instance Method Summary
collapse
Methods inherited from BaseClient
#invoke, #wsdl
Constructor Details
#initialize(logistic_reverse, overrides = {}) ⇒ RequestCollectNumber
6
7
8
9
10
|
# File 'lib/correios_sigep/logistic_reverse/request_collect_number.rb', line 6
def initialize(logistic_reverse, overrides={})
@logistic_reverse = logistic_reverse
@overrides = overrides
super()
end
|
Instance Method Details
#process ⇒ Object
12
13
14
15
16
|
# File 'lib/correios_sigep/logistic_reverse/request_collect_number.rb', line 12
def process
xml = Builders::XML::RequestCollectNumber.build_xml(@logistic_reverse, @overrides)
response = invoke(:solicitar_postagem_reversa, xml)
process_response(response)
end
|