Class: RestApiGenerator::Helpers::Render
- Inherits:
-
Object
- Object
- RestApiGenerator::Helpers::Render
- 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, ) { status: status, error: error, message: , }.as_json end |