Class: BaseCradle::TimelineWebhookEvents

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/basecradle/webhooks.rb

Overview

One timeline’s webhook events — read-only, so iterate is all there is.

Instance Method Summary collapse

Constructor Details

#initialize(client, timeline_uuid) ⇒ TimelineWebhookEvents

Returns a new instance of TimelineWebhookEvents.



132
133
134
135
# File 'lib/basecradle/webhooks.rb', line 132

def initialize(client, timeline_uuid)
  @client = client
  @timeline_uuid = timeline_uuid
end

Instance Method Details

#each(&block) ⇒ Object



137
138
139
# File 'lib/basecradle/webhooks.rb', line 137

def each(&block)
  WebhookEventsResource.new(@client).filter(timeline: @timeline_uuid).each(&block)
end