2018-08-03 13:22:24 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2012-11-19 13:14:05 -05:00
|
|
|
class ServiceHook < WebHook
|
2019-12-17 10:08:15 -05:00
|
|
|
include Presentable
|
|
|
|
|
2021-05-12 08:10:24 -04:00
|
|
|
belongs_to :integration, foreign_key: :service_id
|
|
|
|
validates :integration, presence: true
|
2015-01-23 19:10:43 -05:00
|
|
|
|
2018-11-15 10:55:51 -05:00
|
|
|
def execute(data, hook_name = 'service_hook')
|
2021-05-06 17:10:07 -04:00
|
|
|
super(data, hook_name)
|
2015-01-23 19:10:43 -05:00
|
|
|
end
|
2012-11-19 13:14:05 -05:00
|
|
|
end
|