truemail-rb/truemail-rack

View on GitHub
app/truemail_server/controllers/error/show.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module TruemailServer
  module Controllers
    module Error
      class Show < TruemailServer::Controllers::Base
        NOT_FOUND = 'resource not found'

        def call
          respond_with(404, error(TruemailServer::Controllers::Error::Show::NOT_FOUND))
        end
      end
    end
  end
end