lib/voucherify/client.rb in voucherify-1.5.0 vs lib/voucherify/client.rb in voucherify-1.6.0
- old
+ new
@@ -57,9 +57,13 @@
def events
Voucherify::Service::Events.new(self)
end
+ def promotions
+ Voucherify::Service::Promotions.new(self)
+ end
+
def get(path, params = {})
begin
url = @backend_url + path
response = RestClient.get(url, @headers.merge({:params => params}))
JSON.parse(response.body)
\ No newline at end of file