Module: Deliveries::Couriers::MondialRelay::StatusCodes
- Defined in:
- lib/deliveries/couriers/mondial_relay/status_codes.rb
Class Method Summary collapse
Class Method Details
.message_for(status) ⇒ Object
99 100 101 |
# File 'lib/deliveries/couriers/mondial_relay/status_codes.rb', line 99 def (status) STATUS_CODES[status] || 'Unknown status' end |
.success?(status) ⇒ Boolean
91 92 93 |
# File 'lib/deliveries/couriers/mondial_relay/status_codes.rb', line 91 def success?(status) status&.zero? || (80..83).cover?(status) end |
.tracking_info_success?(status) ⇒ Boolean
95 96 97 |
# File 'lib/deliveries/couriers/mondial_relay/status_codes.rb', line 95 def tracking_info_success?(status) status&.zero? || (80..89).cover?(status) end |