Class: FriendlyShipping::Services::UpsFreight::ShipmentInformation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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

#dataObject (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

#documentsObject (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_numberObject (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_numberObject (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_methodObject (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

#totalObject (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

#warningsObject (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