Class: FriendlyShipping::Services::UpsFreight::ShipmentDocument
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::UpsFreight::ShipmentDocument
- Defined in:
- lib/friendly_shipping/services/ups_freight/shipment_document.rb
Instance Attribute Summary collapse
-
#binary ⇒ Object
readonly
Returns the value of attribute binary.
-
#document_type ⇒ Object
readonly
Returns the value of attribute document_type.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize(format:, document_type:, binary:) ⇒ ShipmentDocument
constructor
A new instance of ShipmentDocument.
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
#binary ⇒ Object (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_type ⇒ Object (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 |
#format ⇒ Object (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 |