Class: BaseCradle::WebhookEventsResource

Inherits:
ItemsResource show all
Defined in:
lib/basecradle/webhooks.rb

Overview

Webhook events from every timeline you can view, newest first (read-only).

Constant Summary collapse

PATH =
"/webhook_events"
PLURAL =
"webhook_events"
SINGULAR =
"webhook_event"
MODEL =
WebhookEvent

Instance Method Summary collapse

Methods inherited from ItemsResource

#each, #get, #initialize

Constructor Details

This class inherits a constructor from BaseCradle::ItemsResource

Instance Method Details

#filter(timeline: nil, endpoint: nil) ⇒ Object

Narrow by timeline and/or endpoint (a WebhookEndpoint or a uuid).



100
101
102
# File 'lib/basecradle/webhooks.rb', line 100

def filter(timeline: nil, endpoint: nil)
  self.class.new(@client, filters: merge_filters(timeline: timeline, endpoint: endpoint))
end