support-foo/web

View on GitHub
app/serializers/webhook_serializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class WebhookSerializer < BaseSerializer
  attributes :account_id, :event, :body, :signature
  attributes :response

  def response
    {
      code: object.response_code,
      body: object.response_body,
      received: object.response_at.try(:iso8601)
    }
  end
end