Class: Webhookdb::WebhookSubscription::Delivery::Attempt
- Inherits:
-
Object
- Object
- Webhookdb::WebhookSubscription::Delivery::Attempt
- Defined in:
- lib/webhookdb/webhook_subscription/delivery.rb
Instance Attribute Summary collapse
-
#at ⇒ Object
readonly
Returns the value of attribute at.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(at, status) ⇒ Attempt
constructor
A new instance of Attempt.
Constructor Details
#initialize(at, status) ⇒ Attempt
Returns a new instance of Attempt.
58 59 60 61 62 |
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 58 def initialize(at, status) @at = at @status = status @success = status < 300 end |
Instance Attribute Details
#at ⇒ Object (readonly)
Returns the value of attribute at.
56 57 58 |
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 56 def at @at end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
56 57 58 |
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 56 def status @status end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
56 57 58 |
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 56 def success @success end |