Class: CzechPostB2bClient::ResponseParsers::BaseParser
- Inherits:
-
SteppedService::Base
- Object
- SteppedService::Base
- CzechPostB2bClient::ResponseParsers::BaseParser
- Defined in:
- lib/czech_post_b2b_client/response_parsers/base_parser.rb
Direct Known Subclasses
GetParcelStateParser, GetParcelsPrintingParser, GetResultParcelsParser, GetStatsParser, ParcelServiceSyncParser, SendParcelsParser
Instance Attribute Summary
Attributes inherited from SteppedService::Base
Instance Method Summary collapse
-
#initialize(xml:) ⇒ BaseParser
constructor
A new instance of BaseParser.
- #steps ⇒ Object
Methods inherited from SteppedService::Base
call, #call, #errors, #failure?, #finished?, #success?
Constructor Details
#initialize(xml:) ⇒ BaseParser
Returns a new instance of BaseParser.
8 9 10 |
# File 'lib/czech_post_b2b_client/response_parsers/base_parser.rb', line 8 def initialize(xml:) @response_xml = xml end |
Instance Method Details
#steps ⇒ Object
12 13 14 |
# File 'lib/czech_post_b2b_client/response_parsers/base_parser.rb', line 12 def steps %i[parse_xml safely_build_result] end |