Skip to content

Commit 080cfab

Browse files
committed
fix(ruby): parameter order
1 parent 13e3bb1 commit 080cfab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/ruby/search_helpers.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ end
4141

4242
# Helper: Wait for an API key to be added, updated or deleted based on a given `operation`.
4343
#
44-
# @param operation [String] the `operation` that was done on a `key`.
4544
# @param key [String] the `key` that has been added, deleted or updated.
45+
# @param operation [String] the `operation` that was done on a `key`.
4646
# @param api_key [Hash] necessary to know if an `update` operation has been processed, compare fields of the response with it.
4747
# @param max_retries [Integer] the maximum number of retries.
4848
# @param timeout [Proc] the function to decide how long to wait between retries.
4949
# @param request_options [Hash] the requestOptions to send along with the query, they will be forwarded to the `getApikey` method and merged with the transporter requestOptions.
5050
# @return [Http::Response] the last get_api_key response
51-
def wait_for_api_key(operation, key, api_key = {}, max_retries = 50, timeout = -> (retry_count) { [retry_count * 200, 5000].min }, request_options = {})
51+
def wait_for_api_key(key, operation, api_key = {}, max_retries = 50, timeout = -> (retry_count) { [retry_count * 200, 5000].min }, request_options = {})
5252
retries = 0
5353
if operation == 'update'
5454
raise ArgumentError, '`api_key` is required when waiting for an `update` operation.' if api_key.nil?

0 commit comments

Comments
 (0)