Sha256: 1a038034c971c3b7a7da9dbf1418fada135ea63506c507c2b7c9c957c7e9dad0

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true

require "mountapi/response/base"

module Mountapi
  module Response
    # Resource is not found
    class Forbidden
      include Base
      status 403

      def initialize(error)
        @error = error
      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/forbidden.rb