lib/petra_sdk/modules/customer.rb in petra_sdk-0.1.3 vs lib/petra_sdk/modules/customer.rb in petra_sdk-0.1.4
- old
+ new
@@ -10,10 +10,10 @@
check_passed_parameters(required_parameters, data)
response = post_request("#{base_url}/customer", data)
return response
end
- def get_customers(page, per_page)
+ def get_customers(page =1, per_page=50)
base_url = petra_object.base_url
response = get_request("#{base_url}/customer?perPage=#{per_page}&page=#{page}")
return response
end