Sha256: b7cf245e9f242c21c61d7b29bfaeea738b4d14b1b3e44a1c1d88fdb340f4e33a

Contents?: true

Size: 526 Bytes

Versions: 17

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

module Physical
  class Shipment
    attr_reader :id,
                :origin,
                :destination,
                :service_code,
                :packages,
                :options

    def initialize(id: nil, origin: nil, destination: nil, service_code: nil, packages: [], options: {})
      @id = id || SecureRandom.uuid
      @origin = origin
      @destination = destination
      @service_code = service_code
      @packages = packages
      @options = options
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
physical-0.4.8 lib/physical/shipment.rb
physical-0.4.7 lib/physical/shipment.rb
physical-0.4.5 lib/physical/shipment.rb
physical-0.4.4 lib/physical/shipment.rb
physical-0.4.3 lib/physical/shipment.rb
physical-0.4.2 lib/physical/shipment.rb
physical-0.4.1 lib/physical/shipment.rb
physical-0.4.0 lib/physical/shipment.rb
physical-0.3.3 lib/physical/shipment.rb
physical-0.3.2 lib/physical/shipment.rb
physical-0.3.1 lib/physical/shipment.rb
physical-0.3.0 lib/physical/shipment.rb
physical-0.2.0 lib/physical/shipment.rb
physical-0.1.4 lib/physical/shipment.rb
physical-0.1.3 lib/physical/shipment.rb
physical-0.1.2 lib/physical/shipment.rb
physical-0.1.1 lib/physical/shipment.rb