Sha256: 23707c69628d913e7389ec3bc2ffb846ffc1494b488a1f883ff43c53a9b12911

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

require "mountapi/response/base"

module Mountapi
  module Response
    # Resource is not found
    class NotFound
      include Base
      status 404

      def initialize(error, response = nil)
        @error = error
        @response = response
      end

      def payload
        { errors: [@error] }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mountapi-0.11.1 lib/mountapi/response/not_found.rb