Class: Upkeep::Delivery::Transport::Outcome
- Inherits:
-
Data
- Object
- Data
- Upkeep::Delivery::Transport::Outcome
- Defined in:
- lib/upkeep/delivery/transport.rb
Instance Attribute Summary collapse
-
#attempts ⇒ Object
readonly
Returns the value of attribute attempts.
-
#envelope_digest ⇒ Object
readonly
Returns the value of attribute envelope_digest.
-
#error_class ⇒ Object
readonly
Returns the value of attribute error_class.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#queue_depth ⇒ Object
readonly
Returns the value of attribute queue_depth.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#subscriber_id ⇒ Object
readonly
Returns the value of attribute subscriber_id.
Instance Method Summary collapse
Instance Attribute Details
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts
8 9 10 |
# File 'lib/upkeep/delivery/transport.rb', line 8 def attempts @attempts end |
#envelope_digest ⇒ Object (readonly)
Returns the value of attribute envelope_digest
8 9 10 |
# File 'lib/upkeep/delivery/transport.rb', line 8 def envelope_digest @envelope_digest end |
#error_class ⇒ Object (readonly)
Returns the value of attribute error_class
8 9 10 |
# File 'lib/upkeep/delivery/transport.rb', line 8 def error_class @error_class end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message
8 9 10 |
# File 'lib/upkeep/delivery/transport.rb', line 8 def @error_message end |
#queue_depth ⇒ Object (readonly)
Returns the value of attribute queue_depth
8 9 10 |
# File 'lib/upkeep/delivery/transport.rb', line 8 def queue_depth @queue_depth end |
#status ⇒ Object (readonly)
Returns the value of attribute status
8 9 10 |
# File 'lib/upkeep/delivery/transport.rb', line 8 def status @status end |
#subscriber_id ⇒ Object (readonly)
Returns the value of attribute subscriber_id
8 9 10 |
# File 'lib/upkeep/delivery/transport.rb', line 8 def subscriber_id @subscriber_id end |
Instance Method Details
#delivered? ⇒ Boolean
17 18 19 |
# File 'lib/upkeep/delivery/transport.rb', line 17 def delivered? status == :delivered end |
#report ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/upkeep/delivery/transport.rb', line 21 def report { subscriber_id: subscriber_id, status: status, attempts: attempts, queue_depth: queue_depth, envelope_digest: envelope_digest, error_class: error_class, error_message: }.compact end |