Class: DHLEcommerceAPI::Event
- Defined in:
- lib/dhl_ecommerce_api/resources/event.rb
Constant Summary collapse
- STATUS_CODES =
{ "71005": "awaiting_parcel_handover_to_dhl_data_submitted", "77123": "awaiting_parcel_handover_to_dhl_shipment_data_received", "77206": "shipment_picked_up", "77015": "processed_at_facility", "77027": "sorted_to_delivery_facility", "77169": "departed_from_facility", "77178": "arrived_at_facility", "77184": "processed_at_delivery_facility", "77090": "out_for_delivery", "77093": "successfully_delivered", }
Instance Method Summary collapse
-
#initialize(attributes = {}, persisted = false) ⇒ Event
constructor
A new instance of Event.
- #status_slug ⇒ Object
Methods inherited from Base
#account_ids, #attributes_with_account_ids, #custom_key_format, #handle_errors
Constructor Details
#initialize(attributes = {}, persisted = false) ⇒ Event
Returns a new instance of Event.
16 17 18 |
# File 'lib/dhl_ecommerce_api/resources/event.rb', line 16 def initialize(attributes = {}, persisted = false) super end |
Instance Method Details
#status_slug ⇒ Object
20 21 22 |
# File 'lib/dhl_ecommerce_api/resources/event.rb', line 20 def status_slug STATUS_CODES[status.to_sym] end |