Method: Parse::Webhooks.routes
- Defined in:
- lib/parse/webhooks.rb
.routes ⇒ OpenStruct
A hash-like structure composing of all the registered webhook triggers and functions. These are ‘:before_save`, `:after_save`, `:before_delete`, `:after_delete` or `:function`.
113 114 115 116 117 |
# File 'lib/parse/webhooks.rb', line 113 def routes return @routes unless @routes.nil? r = Parse::API::Hooks::TRIGGER_NAMES_LOCAL + [:function] @routes = OpenStruct.new(r.reduce({}) { |h, t| h[t] = {}; h }) end |