Class: AbacatePay::Resources::WebhookEndpoints
- Defined in:
- lib/abacate_pay/resources/webhook_endpoints.rb
Overview
Represents a registered webhook endpoint in the AbacatePay system.
This is the endpoint registration, the URL AbacatePay delivers events to. For verifying and parsing an inbound delivery, see Webhooks.
Instance Attribute Summary collapse
-
#active ⇒ Boolean?
Whether the endpoint is active.
-
#created_at ⇒ DateTime?
Creation timestamp.
-
#endpoint ⇒ String?
HTTPS URL that receives the events.
-
#events ⇒ Array<String>?
Event types this endpoint subscribes to.
-
#id ⇒ String?
Webhook ID.
-
#name ⇒ String?
Identifying name.
-
#updated_at ⇒ DateTime?
Last update timestamp.
Instance Method Summary collapse
-
#initialize(data) ⇒ WebhookEndpoints
constructor
A new instance of WebhookEndpoints.
Constructor Details
#initialize(data) ⇒ WebhookEndpoints
Returns a new instance of WebhookEndpoints.
32 33 34 |
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 32 def initialize(data) fill(data) end |
Instance Attribute Details
#active ⇒ Boolean?
Returns Whether the endpoint is active.
23 24 25 |
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 23 def active @active end |
#created_at ⇒ DateTime?
Returns Creation timestamp.
26 27 28 |
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 26 def created_at @created_at end |
#endpoint ⇒ String?
Returns HTTPS URL that receives the events.
17 18 19 |
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 17 def endpoint @endpoint end |
#events ⇒ Array<String>?
Returns Event types this endpoint subscribes to.
20 21 22 |
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 20 def events @events end |
#id ⇒ String?
Returns Webhook ID.
11 12 13 |
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 11 def id @id end |
#name ⇒ String?
Returns Identifying name.
14 15 16 |
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 14 def name @name end |
#updated_at ⇒ DateTime?
Returns Last update timestamp.
29 30 31 |
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 29 def updated_at @updated_at end |