Method: Coinbase::Webhook.list

Defined in:
lib/coinbase/webhook.rb

.listEnumerable<Coinbase::Webhook>

Enumerates the webhooks. The result is an enumerator that lazily fetches from the server, and can be iterated over, converted to an array, etc…

Returns:



53
54
55
56
57
# File 'lib/coinbase/webhook.rb', line 53

def list
  Coinbase::Pagination.enumerate(method(:fetch_webhooks_page).to_proc) do |webhook|
    Coinbase::Webhook.new(webhook)
  end
end