Class: FriendlyShipping::Services::TForceFreight::ShipmentDocument
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::TForceFreight::ShipmentDocument
- Defined in:
- lib/friendly_shipping/services/tforce_freight/shipment_document.rb
Overview
A shipping document (BOL, label, etc.) returned by the API.
Instance Attribute Summary collapse
-
#binary ⇒ String
readonly
The document's binary data.
-
#document_format ⇒ String
readonly
The format of the document.
-
#document_type ⇒ String
readonly
The type of document.
-
#status ⇒ String
readonly
The status of the document.
Instance Method Summary collapse
-
#initialize(document_type:, document_format:, binary:, status: nil) ⇒ ShipmentDocument
constructor
A new instance of ShipmentDocument.
Constructor Details
#initialize(document_type:, document_format:, binary:, status: nil) ⇒ ShipmentDocument
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/friendly_shipping/services/tforce_freight/shipment_document.rb', line 24 def initialize( document_type:, document_format:, binary:, status: nil ) @document_type = document_type @document_format = document_format @binary = binary @status = status end |
Instance Attribute Details
#binary ⇒ String (readonly)
15 16 17 |
# File 'lib/friendly_shipping/services/tforce_freight/shipment_document.rb', line 15 def binary @binary end |
#document_format ⇒ String (readonly)
12 13 14 |
# File 'lib/friendly_shipping/services/tforce_freight/shipment_document.rb', line 12 def document_format @document_format end |
#document_type ⇒ String (readonly)
9 10 11 |
# File 'lib/friendly_shipping/services/tforce_freight/shipment_document.rb', line 9 def document_type @document_type end |
#status ⇒ String (readonly)
18 19 20 |
# File 'lib/friendly_shipping/services/tforce_freight/shipment_document.rb', line 18 def status @status end |