Class: GoCardlessPro::WebhookParseResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#eventsObject (readonly)

Returns the value of attribute events.



7
8
9
# File 'lib/gocardless_pro/webhook.rb', line 7

def events
  @events
end

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