lib/physical/shipment.rb in physical-0.4.8 vs lib/physical/shipment.rb in physical-0.4.9
- old
+ new
@@ -4,17 +4,19 @@
class Shipment
attr_reader :id,
:origin,
:destination,
:service_code,
+ :pallets,
:packages,
:options
- def initialize(id: nil, origin: nil, destination: nil, service_code: nil, packages: [], options: {})
+ def initialize(id: nil, origin: nil, destination: nil, service_code: nil, pallets: [], packages: [], options: {})
@id = id || SecureRandom.uuid
@origin = origin
@destination = destination
@service_code = service_code
+ @pallets = pallets
@packages = packages
@options = options
end
end
end