Class: Vline::API
- Inherits:
-
Grape::API
- Object
- Grape::API
- Vline::API
- Defined in:
- lib/vline.rb
Class Method Summary collapse
Class Method Details
.err_response(e, status) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/vline.rb', line 52 def self.err_response(e, status) Rack::Response.new({ 'status' => status, 'message' => e. }.to_json, status) end |