2014-09-02 18:07:02 +05:30
|
|
|
class ServiceHook < WebHook
|
|
|
|
belongs_to :service
|
2017-09-10 17:25:29 +05:30
|
|
|
validates :service, presence: true
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
def execute(data)
|
2017-09-10 17:25:29 +05:30
|
|
|
WebHookService.new(self, data, 'service_hook').execute
|
2015-09-11 14:41:01 +05:30
|
|
|
end
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|