Skip to content

Commit

Permalink
Fix keyword args for Ruby 3
Browse files Browse the repository at this point in the history
  • Loading branch information
quadule committed Jun 27, 2021
1 parent 3296c6b commit 29fe1d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vimeo_me2/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize token, api_version = "3.4"
["get", "post", "delete", "put","patch"].each do |method|
define_method(method) do |url, **params|
params[:method] = "#{method}"
request request_uri(url), params
request request_uri(url), **params
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/vimeo_me2/user/videos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Videos
# Get a list of albums for the current user.
# @param [Object] Arguments passed to http_request (optional keys include: headers, query)
def get_video_list(**args)
get("/videos", args)
get("/videos", **args)
end

# Get one album by it's ID
Expand Down

0 comments on commit 29fe1d9

Please sign in to comment.