Class: FreightKit::ShipmentEvent
- 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
-
#date_time ⇒ DateTime
Date and time the event occurred.
-
#location ⇒ Location
Location the event occurred.
-
#type_code ⇒ 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 “`.
Method Summary
Methods inherited from Model
Constructor Details
This class inherits a constructor from FreightKit::Model
Instance Attribute Details
#date_time ⇒ DateTime
Returns 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 |
#location ⇒ Location
Returns 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_code ⇒ Symbol
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
“‘.
35 36 37 |
# File 'lib/freight_kit/models/shipment_event.rb', line 35 class ShipmentEvent < Model attr_accessor :date_time, :location, :type_code end |