lib/voucherify/client.rb in voucherify-3.0.0 vs lib/voucherify/client.rb in voucherify-4.0.0
- old
+ new
@@ -74,9 +74,13 @@
def loyalties
Voucherify::Service::Loyalties.new(self)
end
+ def consents
+ Voucherify::Service::Consents.new(self)
+ end
+
def get(path, params = {})
begin
url = @backend_url + path
response = RestClient::Request::execute(method: :get, url: url, headers: @headers.merge({:params => params}), read_timeout: @timeout, open_timeout: @timeout)
JSON.parse(response.body)