2012-11-19 13:14:05 -05:00
|
|
|
class ServiceHook < WebHook
|
|
|
|
belongs_to :service
|
2017-07-20 11:12:06 -04:00
|
|
|
validates :service, presence: true
|
2015-01-23 19:10:43 -05:00
|
|
|
|
|
|
|
def execute(data)
|
2017-04-27 06:08:57 -04:00
|
|
|
WebHookService.new(self, data, 'service_hook').execute
|
2015-01-23 19:10:43 -05:00
|
|
|
end
|
2012-11-19 13:14:05 -05:00
|
|
|
end
|