Class: Mountapi::Response::NotFound
- Inherits:
-
Object
- Object
- Mountapi::Response::NotFound
- Includes:
- Base
- Defined in:
- lib/mountapi/response/not_found.rb
Overview
Resource is not found
Instance Method Summary collapse
-
#initialize(error, response = nil) ⇒ NotFound
constructor
A new instance of NotFound.
- #payload ⇒ Object
Methods included from Base
Constructor Details
#initialize(error, response = nil) ⇒ NotFound
Returns a new instance of NotFound.
10 11 12 13 |
# File 'lib/mountapi/response/not_found.rb', line 10 def initialize(error, response = nil) @error = error @response = response end |
Instance Method Details
#payload ⇒ Object
15 16 17 |
# File 'lib/mountapi/response/not_found.rb', line 15 def payload { errors: [@error] } end |