Class: CzechPostB2bClient::Services::AddressSheetsGenerator
- Inherits:
-
Communicator
- Object
- SteppedService::Base
- Orchestrator
- Communicator
- CzechPostB2bClient::Services::AddressSheetsGenerator
- Defined in:
- lib/czech_post_b2b_client/services/address_sheets_generator.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#parcel_codes ⇒ Object
readonly
Returns the value of attribute parcel_codes.
Attributes inherited from SteppedService::Base
Instance Method Summary collapse
-
#initialize(parcel_codes:, options: {}) ⇒ AddressSheetsGenerator
constructor
A new instance of AddressSheetsGenerator.
- #steps ⇒ Object
Methods inherited from SteppedService::Base
call, #call, #errors, #failure?, #finished?, #success?
Constructor Details
#initialize(parcel_codes:, options: {}) ⇒ AddressSheetsGenerator
Returns a new instance of AddressSheetsGenerator
8 9 10 11 |
# File 'lib/czech_post_b2b_client/services/address_sheets_generator.rb', line 8 def initialize(parcel_codes:, options: {}) @parcel_codes = parcel_codes @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options
6 7 8 |
# File 'lib/czech_post_b2b_client/services/address_sheets_generator.rb', line 6 def @options end |
#parcel_codes ⇒ Object (readonly)
Returns the value of attribute parcel_codes
6 7 8 |
# File 'lib/czech_post_b2b_client/services/address_sheets_generator.rb', line 6 def parcel_codes @parcel_codes end |
Instance Method Details
#steps ⇒ Object
13 14 15 |
# File 'lib/czech_post_b2b_client/services/address_sheets_generator.rb', line 13 def steps super + %i[check_for_state_errors] end |