Class: Shipping::TrackingResync::Result
- Inherits:
-
Data
- Object
- Data
- Shipping::TrackingResync::Result
- Defined in:
- app/services/shipping/tracking_resync.rb
Overview
Returns outcome of one resync attempt.
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#skipped_reason ⇒ Object
readonly
Returns the value of attribute skipped_reason.
-
#webhook_log ⇒ Object
readonly
Returns the value of attribute webhook_log.
Instance Method Summary collapse
-
#ingested? ⇒ Boolean
True when ShipEngine returned scans we ingested.
-
#initialize(events: 0, webhook_log: nil, skipped_reason: nil) ⇒ Result
constructor
Builds one tracking-resync result.
Constructor Details
#initialize(events: 0, webhook_log: nil, skipped_reason: nil) ⇒ Result
Builds one tracking-resync result.
34 |
# File 'app/services/shipping/tracking_resync.rb', line 34 def initialize(events: 0, webhook_log: nil, skipped_reason: nil) = super |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events
27 28 29 |
# File 'app/services/shipping/tracking_resync.rb', line 27 def events @events end |
#skipped_reason ⇒ Object (readonly)
Returns the value of attribute skipped_reason
27 28 29 |
# File 'app/services/shipping/tracking_resync.rb', line 27 def skipped_reason @skipped_reason end |
#webhook_log ⇒ Object (readonly)
Returns the value of attribute webhook_log
27 28 29 |
# File 'app/services/shipping/tracking_resync.rb', line 27 def webhook_log @webhook_log end |
Instance Method Details
#ingested? ⇒ Boolean
Returns true when ShipEngine returned scans we ingested.
37 |
# File 'app/services/shipping/tracking_resync.rb', line 37 def ingested? = webhook_log.present? |