Class: Postscale::WebhookVerificationResult
- Inherits:
-
Object
- Object
- Postscale::WebhookVerificationResult
- Defined in:
- lib/postscale/webhook_verification.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(valid:, code: nil, message: nil, timestamp: nil) ⇒ WebhookVerificationResult
constructor
A new instance of WebhookVerificationResult.
- #valid? ⇒ Boolean (also: #valid)
Constructor Details
#initialize(valid:, code: nil, message: nil, timestamp: nil) ⇒ WebhookVerificationResult
Returns a new instance of WebhookVerificationResult.
7 8 9 10 11 12 |
# File 'lib/postscale/webhook_verification.rb', line 7 def initialize(valid:, code: nil, message: nil, timestamp: nil) @valid = valid @code = code @message = @timestamp = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/postscale/webhook_verification.rb', line 5 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/postscale/webhook_verification.rb', line 5 def @message end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/postscale/webhook_verification.rb', line 5 def @timestamp end |
Instance Method Details
#valid? ⇒ Boolean Also known as: valid
14 15 16 |
# File 'lib/postscale/webhook_verification.rb', line 14 def valid? @valid end |