2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-06-15 13:49:57 -04:00
|
|
|
class AdminWebHookEventSerializer < ApplicationSerializer
|
|
|
|
attributes :id,
|
|
|
|
:web_hook_id,
|
|
|
|
:request_url,
|
|
|
|
:headers,
|
|
|
|
:payload,
|
|
|
|
:status,
|
|
|
|
:response_headers,
|
|
|
|
:response_body,
|
|
|
|
:duration,
|
|
|
|
:created_at
|
|
|
|
|
|
|
|
def request_url
|
|
|
|
object.web_hook.payload_url
|
|
|
|
end
|
|
|
|
end
|