class Physical::Shipment

Attributes

destination[R]
id[R]
options[R]
origin[R]
packages[R]
service_code[R]

Public Class Methods

new(id: nil, origin: nil, destination: nil, service_code: nil, packages: [], options: {}) click to toggle source
# File lib/physical/shipment.rb, line 12
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