Class: Babili::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/babili/client.rb

Class Method Summary collapse

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