Class: HookSniff::AttemptInfo
- Inherits:
-
Object
- Object
- HookSniff::AttemptInfo
- Defined in:
- lib/hooksniff/webhook_event.rb
Overview
Info about a delivery attempt.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#response_status_code ⇒ Object
readonly
Returns the value of attribute response_status_code.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(id:, timestamp:, response_status_code:) ⇒ AttemptInfo
constructor
A new instance of AttemptInfo.
Constructor Details
#initialize(id:, timestamp:, response_status_code:) ⇒ AttemptInfo
Returns a new instance of AttemptInfo.
78 79 80 81 82 |
# File 'lib/hooksniff/webhook_event.rb', line 78 def initialize(id:, timestamp:, response_status_code:) @id = id @timestamp = @response_status_code = response_status_code end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
76 77 78 |
# File 'lib/hooksniff/webhook_event.rb', line 76 def id @id end |
#response_status_code ⇒ Object (readonly)
Returns the value of attribute response_status_code.
76 77 78 |
# File 'lib/hooksniff/webhook_event.rb', line 76 def response_status_code @response_status_code end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
76 77 78 |
# File 'lib/hooksniff/webhook_event.rb', line 76 def @timestamp end |