Class: FriendlyShipping::Services::UpsFreight::ShipmentDocument

Inherits:
Object
  • Object
show all
Defined in:
lib/friendly_shipping/services/ups_freight/shipment_document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format:, document_type:, binary:) ⇒ ShipmentDocument

Returns a new instance of ShipmentDocument.



9
10
11
12
13
14
15
16
17
# File 'lib/friendly_shipping/services/ups_freight/shipment_document.rb', line 9

def initialize(
  format:,
  document_type:,
  binary:
)
  @format = format
  @document_type = document_type
  @binary = binary
end

Instance Attribute Details

#binaryObject (readonly)

Returns the value of attribute binary.



7
8
9
# File 'lib/friendly_shipping/services/ups_freight/shipment_document.rb', line 7

def binary
  @binary
end

#document_typeObject (readonly)

Returns the value of attribute document_type.



7
8
9
# File 'lib/friendly_shipping/services/ups_freight/shipment_document.rb', line 7

def document_type
  @document_type
end

#formatObject (readonly)

Returns the value of attribute format.



7
8
9
# File 'lib/friendly_shipping/services/ups_freight/shipment_document.rb', line 7

def format
  @format
end