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