Class: CzechPostB2bClient::Services::AddressSheetsGenerator

Inherits:
Communicator show all
Defined in:
lib/czech_post_b2b_client/services/address_sheets_generator.rb

Instance Attribute Summary collapse

Attributes inherited from SteppedService::Base

#result

Instance Method Summary collapse

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 = options
end

Instance Attribute Details

#optionsObject (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
  @options
end

#parcel_codesObject (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

#stepsObject



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