lib/physical/shipment.rb in physical-0.1.0 vs lib/physical/shipment.rb in physical-0.1.1

- old
+ new

@@ -3,18 +3,18 @@ module Physical class Shipment attr_reader :id, :origin, :destination, - :shipping_method, + :service_code, :packages, :options - def initialize(id: nil, origin: nil, destination: nil, shipping_method: nil, packages: [], options: {}) + def initialize(id: nil, origin: nil, destination: nil, service_code: nil, packages: [], options: {}) @id = id || SecureRandom.uuid @origin = origin @destination = destination - @shipping_method = shipping_method + @service_code = service_code @packages = packages @options = options end end end