Class: CzechPostB2bClient::Services::ParcelsSendProcessUpdater

Inherits:
Communicator show all
Defined in:
lib/czech_post_b2b_client/services/parcels_send_process_updater.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(transaction_id:) ⇒ ParcelsSendProcessUpdater

Returns a new instance of ParcelsSendProcessUpdater.



8
9
10
# File 'lib/czech_post_b2b_client/services/parcels_send_process_updater.rb', line 8

def initialize(transaction_id:)
  @transaction_id = transaction_id
end

Instance Attribute Details

#transaction_idObject (readonly)

Returns the value of attribute transaction_id.



6
7
8
# File 'lib/czech_post_b2b_client/services/parcels_send_process_updater.rb', line 6

def transaction_id
  @transaction_id
end

Instance Method Details

#stepsObject



12
13
14
# File 'lib/czech_post_b2b_client/services/parcels_send_process_updater.rb', line 12

def steps
  super + %i[check_for_state_errors]
end