Class: Mountapi::Response::Forbidden

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/mountapi/response/forbidden.rb

Overview

Resource is not found

Instance Method Summary collapse

Methods included from Base

included

Constructor Details

#initialize(error) ⇒ Forbidden

Returns a new instance of Forbidden.



12
13
14
# File 'lib/mountapi/response/forbidden.rb', line 12

def initialize(error)
  @error = error
end

Instance Method Details

#payloadObject



16
17
18
# File 'lib/mountapi/response/forbidden.rb', line 16

def payload
  { errors: [@error] }
end