Class: FriendlyShipping::Services::UpsFreight::ShipmentInformation
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::UpsFreight::ShipmentInformation
- Defined in:
- lib/friendly_shipping/services/ups_freight/shipment_information.rb
Instance Attribute Summary collapse
-
#bol_id ⇒ Object
readonly
Returns the value of attribute bol_id.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#documents ⇒ Object
readonly
Returns the value of attribute documents.
-
#pickup_request_number ⇒ Object
readonly
Returns the value of attribute pickup_request_number.
-
#pro_number ⇒ Object
(also: #number)
readonly
Returns the value of attribute pro_number.
-
#shipping_method ⇒ Object
readonly
Returns the value of attribute shipping_method.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(total:, bol_id:, number: nil, pro_number: nil, pickup_request_number: nil, documents: [], shipping_method: nil, warnings: nil, data: {}) ⇒ ShipmentInformation
constructor
A new instance of ShipmentInformation.
Constructor Details
#initialize(total:, bol_id:, number: nil, pro_number: nil, pickup_request_number: nil, documents: [], shipping_method: nil, warnings: nil, data: {}) ⇒ ShipmentInformation
Returns a new instance of ShipmentInformation.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/friendly_shipping/services/ups_freight/shipment_information.rb', line 19 def initialize( total:, bol_id:, number: nil, pro_number: nil, pickup_request_number: nil, documents: [], shipping_method: nil, warnings: nil, data: {} ) @total = total @bol_id = bol_id @pro_number = pro_number || number @pickup_request_number = pickup_request_number @documents = documents @shipping_method = shipping_method @warnings = warnings @data = data end |
Instance Attribute Details
#bol_id ⇒ Object (readonly)
Returns the value of attribute bol_id.
7 8 9 |
# File 'lib/friendly_shipping/services/ups_freight/shipment_information.rb', line 7 def bol_id @bol_id end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/friendly_shipping/services/ups_freight/shipment_information.rb', line 7 def data @data end |
#documents ⇒ Object (readonly)
Returns the value of attribute documents.
7 8 9 |
# File 'lib/friendly_shipping/services/ups_freight/shipment_information.rb', line 7 def documents @documents end |
#pickup_request_number ⇒ Object (readonly)
Returns the value of attribute pickup_request_number.
7 8 9 |
# File 'lib/friendly_shipping/services/ups_freight/shipment_information.rb', line 7 def pickup_request_number @pickup_request_number end |
#pro_number ⇒ Object (readonly) Also known as: number
Returns the value of attribute pro_number.
7 8 9 |
# File 'lib/friendly_shipping/services/ups_freight/shipment_information.rb', line 7 def pro_number @pro_number end |
#shipping_method ⇒ Object (readonly)
Returns the value of attribute shipping_method.
7 8 9 |
# File 'lib/friendly_shipping/services/ups_freight/shipment_information.rb', line 7 def shipping_method @shipping_method end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
7 8 9 |
# File 'lib/friendly_shipping/services/ups_freight/shipment_information.rb', line 7 def total @total end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
7 8 9 |
# File 'lib/friendly_shipping/services/ups_freight/shipment_information.rb', line 7 def warnings @warnings end |