Class: TikTakTiokiClient::HttpClient

Inherits:
Object
  • Object
show all
Defined in:
lib/tik_tak_tioki_client/http_client.rb

Instance Method Summary collapse

Instance Method Details

#get(path, query_params: {}) ⇒ Object



8
9
10
11
# File 'lib/tik_tak_tioki_client/http_client.rb', line 8

def get(path, query_params: {})
  url = build_url(path, query_params)
  connection.get(url)
end

#post(path, data: nil, query_params: {}) ⇒ Object



13
14
15
16
# File 'lib/tik_tak_tioki_client/http_client.rb', line 13

def post(path, data: nil, query_params: {})
  url = build_url(path, query_params)
  connection.post(url, data)
end