Class: FreightKit::ShipmentEvent

Inherits:
Model
  • Object
show all
Defined in:
lib/freight_kit/models/shipment_event.rb

Overview

ShipmentEvent is the abstract base class for all shipment events (usually attached to TrackingEresponse).

Instance Attribute Summary collapse

Method Summary

Methods inherited from Model

#attributes, #initialize

Constructor Details

This class inherits a constructor from FreightKit::Model

Instance Attribute Details

#date_timeDateTime

Returns Date and time the event occurred.

Returns:

  • (DateTime)

    Date and time the event occurred.



35
36
37
# File 'lib/freight_kit/models/shipment_event.rb', line 35

class ShipmentEvent < Model
  attr_accessor :date_time, :location, :type_code
end

#locationLocation

Returns Location the event occurred.

Returns:

  • (Location)

    Location the event occurred.



35
36
37
# File 'lib/freight_kit/models/shipment_event.rb', line 35

class ShipmentEvent < Model
  attr_accessor :date_time, :location, :type_code
end

#type_codeSymbol

Returns 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
```.

Returns:

  • (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
    


35
36
37
# File 'lib/freight_kit/models/shipment_event.rb', line 35

class ShipmentEvent < Model
  attr_accessor :date_time, :location, :type_code
end