Class: CzechPostB2bClient::Services::AddressSheetsGenerator

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

Defined Under Namespace

Classes: AddressSheetsGeneratorResult

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.



10
11
12
13
14
# File 'lib/czech_post_b2b_client/services/address_sheets_generator.rb', line 10

def initialize(parcel_codes:, options: {})
  super()
  @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



16
17
18
# File 'lib/czech_post_b2b_client/services/address_sheets_generator.rb', line 16

def steps
  super + %i[check_for_state_errors]
end