Module: Response
- Defined in:
- lib/easys3/response.rb
Class Method Summary collapse
Class Method Details
.error(message) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/easys3/response.rb', line 16 def self.error() return { "status": 500, "message": } end |
.missing(message) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/easys3/response.rb', line 9 def self.missing() return { "status": 404, "message": } end |
.success(data, status = 200) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/easys3/response.rb', line 2 def self.success(data, status=200) return { "status": status, "data": data } end |