lib/geet/github/user.rb in geet-0.3.16 vs lib/geet/github/user.rb in geet-0.3.17
- old
+ new
@@ -43,20 +43,20 @@
end
end
# See https://developer.github.com/v3/users/#get-the-authenticated-user
#
- def self.authenticated(api_interface)
+ def self.authenticated(api_interface, **_)
api_path = '/user'
response = api_interface.send_request(api_path)
new(response.fetch('login'), api_interface)
end
# Returns an array of User instances
#
- def self.list_collaborators(api_interface)
+ def self.list_collaborators(api_interface, **)
api_path = 'collaborators'
response = api_interface.send_request(api_path, multipage: true)
response.map { |user_entry| new(user_entry.fetch('login'), api_interface) }
end