Class: Mountapi::Response::InternalError

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

Overview

Server side error ( can’t be fixed client side )

Instance Method Summary collapse

Methods included from Base

included

Constructor Details

#initialize(errors, response = nil) ⇒ InternalError



10
11
12
13
# File 'lib/mountapi/response/internal_error.rb', line 10

def initialize(errors, response = nil)
  @errors = errors
  @response = response
end

Instance Method Details

#payloadObject



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

def payload
  { errors: @errors }
end