Class: Babili::Client
- Inherits:
-
Object
- Object
- Babili::Client
- Defined in:
- lib/babili/client.rb
Class Method Summary collapse
- .delete(path, query_params = {}) ⇒ Object
- .get(path, query_params = {}) ⇒ Object
- .post(path, payload, query_params = {}) ⇒ Object
- .put(path, payload, query_params = {}) ⇒ Object
Class Method Details
.delete(path, query_params = {}) ⇒ Object
18 19 20 |
# File 'lib/babili/client.rb', line 18 def self.delete(path, query_params = {}) execute(:delete, uri(path), headers, query_params) end |
.get(path, query_params = {}) ⇒ Object
6 7 8 |
# File 'lib/babili/client.rb', line 6 def self.get(path, query_params = {}) execute(:get, uri(path), headers, query_params) end |
.post(path, payload, query_params = {}) ⇒ Object
10 11 12 |
# File 'lib/babili/client.rb', line 10 def self.post(path, payload, query_params = {}) execute(:post, uri(path), headers, nil, payload) end |
.put(path, payload, query_params = {}) ⇒ Object
14 15 16 |
# File 'lib/babili/client.rb', line 14 def self.put(path, payload, query_params = {}) execute(:put, uri(path), headers, nil, payload) end |