Class: CzechPostB2bClient::Services::ParcelsSender

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

Direct Known Subclasses

ParcelsSubmissionCloser

Instance Attribute Summary collapse

Attributes inherited from SteppedService::Base

#result

Instance Method Summary collapse

Methods inherited from Communicator

#steps

Methods inherited from SteppedService::Base

call, #call, #errors, #failure?, #finished?, #steps, #success?

Constructor Details

#initialize(sending_data:, parcels:) ⇒ ParcelsSender

Returns a new instance of ParcelsSender



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

def initialize(sending_data:, parcels:)
  @sending_data = sending_data
  @parcels = parcels
end

Instance Attribute Details

#parcelsObject (readonly)

Returns the value of attribute parcels



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

def parcels
  @parcels
end

#sending_dataObject (readonly)

Returns the value of attribute sending_data



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

def sending_data
  @sending_data
end