lib/voucherify.rb in voucherify-0.4.0 vs lib/voucherify.rb in voucherify-0.5.0
- old
+ new
@@ -133,10 +133,10 @@
url = @backend_url + "/customers/"
response = RestClient.post(url, customer.to_json, @headers.merge({ :content_type => :json }))
JSON.parse(response.body)
end
- def fetch_customer(customer_id)
+ def get_customer(customer_id)
url = @backend_url + "/customers/" + customer_id
response = RestClient.get(url, @headers)
JSON.parse(response.body)
end