Sha256: 91ac7c2085b0f3aa0944edacace5487ab2a73e9b80eb9cc2fbb287daa2e91862
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
# frozen_string_literal: true module Physical class Shipment attr_reader :id, :origin, :destination, :service_code, :pallets, :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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
physical-0.4.9 | lib/physical/shipment.rb |