Class: Mountapi::Response::Forbidden
- Inherits:
-
Object
- Object
- Mountapi::Response::Forbidden
- Includes:
- Base
- Defined in:
- lib/mountapi/response/forbidden.rb
Overview
Resource is not found
Instance Method Summary collapse
-
#initialize(error) ⇒ Forbidden
constructor
A new instance of Forbidden.
- #payload ⇒ Object
Methods included from Base
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
#payload ⇒ Object
16 17 18 |
# File 'lib/mountapi/response/forbidden.rb', line 16 def payload { errors: [@error] } end |