Sha256: 230787570074244b480f75428d4f33c7f10694e629da6e62959f3e2d322242e9

Contents?: true

Size: 1008 Bytes

Versions: 8

Compression:

Stored size: 1008 Bytes

Contents

# frozen_string_literal: true

module FreightKit
  # `ShipmentEvent` is the abstract base class for all shipment events (usually
  # attached to `TrackingEresponse`).
  #
  # @attribute date_time
  #   @return [DateTime] Date and time the event occurred.
  #
  # @attribute location
  #   @return [Location] Location the event occurred.
  #
  # @attribute type_code
  #   @return [Symbol] One of:
  #     ```
  #       :arrived_at_terminal
  #       :delayed_due_to_weather
  #       :delivered
  #       :delivery_appointment_scheduled
  #       :departed
  #       :found
  #       :located
  #       :lost
  #       :out_for_delivery
  #       :pending_delivery_appointment
  #       :picked_up
  #       :pickup_driver_assigned
  #       :pickup_information_received_by_carrier
  #       :pickup_information_sent_to_carrier
  #       :sailed
  #       :trailer_closed
  #       :trailer_unloaded
  #     ```
  #
  class ShipmentEvent < Model
    attr_accessor :date_time, :location, :type_code
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
freight_kit-0.1.11 lib/freight_kit/models/shipment_event.rb
freight_kit-0.1.10 lib/freight_kit/models/shipment_event.rb
freight_kit-0.1.7 lib/freight_kit/models/shipment_event.rb
freight_kit-0.1.4 lib/freight_kit/models/shipment_event.rb
freight_kit-0.1.3 lib/freight_kit/models/shipment_event.rb
freight_kit-0.1.2 lib/freight_kit/models/shipment_event.rb
freight_kit-0.1.1 lib/freight_kit/models/shipment_event.rb
freight_kit-0.1.0 lib/freight_kit/models/shipment_event.rb