Exception: Increase::WebhookSignatureVerificationError
- Defined in:
- lib/increase/errors.rb
Overview
WebhookSignatureVerificationError is raised when a received webhook’s signature is invalid.
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#signature_header ⇒ Object
readonly
Returns the value of attribute signature_header.
Instance Method Summary collapse
-
#initialize(message = "Increase webhook signature verification failed", signature_header: nil, payload: nil) ⇒ WebhookSignatureVerificationError
constructor
A new instance of WebhookSignatureVerificationError.
Constructor Details
#initialize(message = "Increase webhook signature verification failed", signature_header: nil, payload: nil) ⇒ WebhookSignatureVerificationError
Returns a new instance of WebhookSignatureVerificationError.
92 93 94 95 96 97 |
# File 'lib/increase/errors.rb', line 92 def initialize( = "Increase webhook signature verification failed", signature_header: nil, payload: nil) @signature_header = signature_header @payload = payload super() end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
90 91 92 |
# File 'lib/increase/errors.rb', line 90 def payload @payload end |
#signature_header ⇒ Object (readonly)
Returns the value of attribute signature_header.
89 90 91 |
# File 'lib/increase/errors.rb', line 89 def signature_header @signature_header end |