Method: Finnhub::Client#webhooks

Defined in:
lib/Client.rb

#webhooks(plain: false) ⇒ Object



62
63
64
65
66
67
# File 'lib/Client.rb', line 62

def webhooks(plain: false)
  output = request("/webhook/list")
  return output if plain

  output.map{|o| Finnhub::Webhook.new(client: self, id: o[:id], hash: o)}
end