Class: CzechPostB2bClient::RequestBuilders::GetParcelsPrintingBuilder

Inherits:
BaseBuilder show all
Defined in:
lib/czech_post_b2b_client/request_builders/get_parcels_printing_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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseBuilder

#steps

Methods inherited from SteppedService::Base

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

Constructor Details

#initialize(parcel_codes:, options:, request_id: 1) ⇒ GetParcelsPrintingBuilder

Returns a new instance of GetParcelsPrintingBuilder.



8
9
10
11
12
13
# File 'lib/czech_post_b2b_client/request_builders/get_parcels_printing_builder.rb', line 8

def initialize(parcel_codes:, options:, request_id: 1)
  super()
  @parcel_codes = parcel_codes
  @options = options
  @request_id = request_id
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/czech_post_b2b_client/request_builders/get_parcels_printing_builder.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/request_builders/get_parcels_printing_builder.rb', line 6

def parcel_codes
  @parcel_codes
end

Class Method Details

.allowed_printing_template_classesObject



15
16
17
# File 'lib/czech_post_b2b_client/request_builders/get_parcels_printing_builder.rb', line 15

def self.allowed_printing_template_classes
  @allowed_printing_template_classes ||= CzechPostB2bClient::PrintingTemplates.all_classes
end