Class: Vline::API

Inherits:
Grape::API
  • Object
show all
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.message
   }.to_json, status)
end