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.
59 60 61 62 63 |
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 59 def initialize(at, status) @at = at @status = status @success = status < 300 end |
Instance Attribute Details
#at ⇒ Object (readonly)
Returns the value of attribute at.
57 58 59 |
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 57 def at @at end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
57 58 59 |
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 57 def status @status end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
57 58 59 |
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 57 def success @success end |