Class: Mountapi::Response::NotFound

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

Overview

Resource is not found

Instance Method Summary collapse

Methods included from Base

included

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

#payloadObject



15
16
17
# File 'lib/mountapi/response/not_found.rb', line 15

def payload
  { errors: [@error] }
end