Class: GoCardlessPro::WebhookParseResult
- Inherits:
-
Object
- Object
- GoCardlessPro::WebhookParseResult
- Defined in:
- lib/gocardless_pro/webhook.rb
Overview
Represents the result of parsing a webhook, containing both the events and the webhook metadata.
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#webhook_id ⇒ Object
readonly
Returns the value of attribute webhook_id.
Instance Method Summary collapse
-
#initialize(events, webhook_id) ⇒ WebhookParseResult
constructor
A new instance of WebhookParseResult.
Constructor Details
#initialize(events, webhook_id) ⇒ WebhookParseResult
Returns a new instance of WebhookParseResult.
10 11 12 13 |
# File 'lib/gocardless_pro/webhook.rb', line 10 def initialize(events, webhook_id) @events = events @webhook_id = webhook_id end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
7 8 9 |
# File 'lib/gocardless_pro/webhook.rb', line 7 def events @events end |
#webhook_id ⇒ Object (readonly)
Returns the value of attribute webhook_id.
8 9 10 |
# File 'lib/gocardless_pro/webhook.rb', line 8 def webhook_id @webhook_id end |