Class: Mountapi::Response::InternalError
- Inherits:
-
Object
- Object
- Mountapi::Response::InternalError
- Includes:
- Base
- Defined in:
- lib/mountapi/response/internal_error.rb
Overview
Server side error ( can’t be fixed client side )
Instance Method Summary collapse
-
#initialize(errors, response = nil) ⇒ InternalError
constructor
A new instance of InternalError.
- #payload ⇒ Object
Methods included from Base
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
#payload ⇒ Object
15 16 17 |
# File 'lib/mountapi/response/internal_error.rb', line 15 def payload { errors: @errors } end |