Class: CzechPostB2bClient::ResponseParsers::BaseParser

Inherits:
SteppedService::Base show all
Defined in:
lib/czech_post_b2b_client/response_parsers/base_parser.rb

Instance Attribute Summary

Attributes inherited from SteppedService::Base

#result

Instance Method Summary collapse

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

#stepsObject



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