Class: HookSniff::LastAttemptInfo

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

Overview

Info about the last delivery attempt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, timestamp:, response_status_code:) ⇒ LastAttemptInfo

Returns a new instance of LastAttemptInfo.



67
68
69
70
71
# File 'lib/hooksniff/webhook_event.rb', line 67

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.



65
66
67
# File 'lib/hooksniff/webhook_event.rb', line 65

def id
  @id
end

#response_status_codeObject (readonly)

Returns the value of attribute response_status_code.



65
66
67
# File 'lib/hooksniff/webhook_event.rb', line 65

def response_status_code
  @response_status_code
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



65
66
67
# File 'lib/hooksniff/webhook_event.rb', line 65

def timestamp
  @timestamp
end