Class: CzechPostB2bClient::RequestBuilders::GetResultParcelsBuilder

Inherits:
BaseBuilder show all
Defined in:
lib/czech_post_b2b_client/request_builders/get_result_parcels_builder.rb

Constant Summary

Constants inherited from BaseBuilder

BaseBuilder::TIME_FORMAT

Instance Attribute Summary collapse

Attributes inherited from BaseBuilder

#request_id

Attributes inherited from SteppedService::Base

#result

Instance Method Summary collapse

Methods inherited from BaseBuilder

#steps

Methods inherited from SteppedService::Base

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

Constructor Details

#initialize(transaction_id:, request_id: 1) ⇒ GetResultParcelsBuilder

Returns a new instance of GetResultParcelsBuilder.



8
9
10
11
# File 'lib/czech_post_b2b_client/request_builders/get_result_parcels_builder.rb', line 8

def initialize(transaction_id:, request_id: 1)
  @transaction_id = transaction_id
  @request_id = request_id
end

Instance Attribute Details

#transaction_idObject (readonly)

Returns the value of attribute transaction_id.



6
7
8
# File 'lib/czech_post_b2b_client/request_builders/get_result_parcels_builder.rb', line 6

def transaction_id
  @transaction_id
end