Class: Webhookdb::WebhookSubscription::Delivery::Attempt

Inherits:
Object
  • Object
show all
Defined in:
lib/webhookdb/webhook_subscription/delivery.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#atObject (readonly)

Returns the value of attribute at.



57
58
59
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 57

def at
  @at
end

#statusObject (readonly)

Returns the value of attribute status.



57
58
59
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 57

def status
  @status
end

#successObject (readonly)

Returns the value of attribute success.



57
58
59
# File 'lib/webhookdb/webhook_subscription/delivery.rb', line 57

def success
  @success
end