diff --git a/lib/recurly/client.rb b/lib/recurly/client.rb index ff6e07e3b..8f49a3a60 100644 --- a/lib/recurly/client.rb +++ b/lib/recurly/client.rb @@ -96,7 +96,7 @@ def pager(path, **options) end def head(path, **options) - validate_options!(options) + validate_options!(**options) request = Net::HTTP::Head.new build_url(path, options) set_headers(request, options[:headers]) http_response = run_request(request, options) @@ -104,7 +104,7 @@ def head(path, **options) end def get(path, **options) - validate_options!(options) + validate_options!(**options) request = Net::HTTP::Get.new build_url(path, options) set_headers(request, options[:headers]) http_response = run_request(request, options) @@ -112,7 +112,7 @@ def get(path, **options) end def post(path, request_data, request_class, **options) - validate_options!(options) + validate_options!(**options) request_class.new(request_data).validate! request = Net::HTTP::Post.new build_url(path, options) request.set_content_type(JSON_CONTENT_TYPE) @@ -123,7 +123,7 @@ def post(path, request_data, request_class, **options) end def put(path, request_data = nil, request_class = nil, **options) - validate_options!(options) + validate_options!(**options) request = Net::HTTP::Put.new build_url(path, options) request.set_content_type(JSON_CONTENT_TYPE) set_headers(request, options[:headers]) @@ -137,7 +137,7 @@ def put(path, request_data = nil, request_class = nil, **options) end def delete(path, **options) - validate_options!(options) + validate_options!(**options) request = Net::HTTP::Delete.new build_url(path, options) set_headers(request, options[:headers]) http_response = run_request(request, options)