Class: HookSniff::AttemptInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/hooksniff/webhook_event.rb

Overview

Info about a delivery attempt.

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = timestamp
  @response_status_code = response_status_code
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



76
77
78
# File 'lib/hooksniff/webhook_event.rb', line 76

def id
  @id
end

#response_status_codeObject (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

#timestampObject (readonly)

Returns the value of attribute timestamp.



76
77
78
# File 'lib/hooksniff/webhook_event.rb', line 76

def timestamp
  @timestamp
end