Class: Macaco::Api
- Inherits:
-
Object
- Object
- Macaco::Api
- Defined in:
- lib/macaco/api.rb
Class Method Summary collapse
Class Method Details
.post(args = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/macaco/api.rb', line 4 def self.post(args = {}) request = request_instance(args) request.body = args[:data].to_json JSON.parse(http_response(request, args).body) end |