Class: RestApiGenerator::Helpers::Render

Inherits:
Object
  • Object
show all
Defined in:
lib/rest_api_generator/helpers/render.rb

Class Method Summary collapse

Class Method Details

.json(error, status, message) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/rest_api_generator/helpers/render.rb', line 6

def self.json(error, status, message)
  {
    status: status,
    error: error,
    message: message,
  }.as_json
end