Class: CorreiosSigep::LogisticReverse::RequestCollectNumber
- Inherits:
-
BaseClient
- Object
- BaseClient
- CorreiosSigep::LogisticReverse::RequestCollectNumber
- Defined in:
- lib/correios_sigep/logistic_reverse/request_collect_number.rb
Constant Summary
Constants inherited from BaseClient
Instance Method Summary collapse
-
#initialize(logistic_reverse, overrides = {}) ⇒ RequestCollectNumber
constructor
A new instance of RequestCollectNumber.
- #process ⇒ Object
Methods inherited from BaseClient
Constructor Details
#initialize(logistic_reverse, overrides = {}) ⇒ RequestCollectNumber
Returns a new instance of 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 |