Class: ServiceHook

Inherits:
WebHook show all
Includes:
Presentable
Defined in:
app/models/hooks/service_hook.rb

Instance Method Summary collapse

Methods included from Presentable

#present

Methods inherited from WebHook

#allow_local_requests?, #async_execute, #help_path

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Instance Method Details

#execute(data, hook_name = 'service_hook') ⇒ Object

rubocop: disable CodeReuse/ServiceClass


10
11
12
# File 'app/models/hooks/service_hook.rb', line 10

def execute(data, hook_name = 'service_hook')
  WebHookService.new(self, data, hook_name).execute
end