Skip to content

Commit cd7087b

Browse files
committed
Change api syntax.
1 parent 5883971 commit cd7087b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/github_api/client/activity/watching.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Github
44
# Watching a Repository registers the user to receive notificactions on new
5-
# discussions, as well as events in the users activity feed.
5+
# discussions, as well as events in the user's activity feed.
66
class Client::Activity::Watching < API
77
# List repository watchers
88
#
@@ -21,7 +21,7 @@ def list(*args)
2121
return response unless block_given?
2222
response.each { |el| yield el }
2323
end
24-
alias :all :list
24+
alias_method :all, :list
2525

2626
# List repos being watched by a user
2727
#
@@ -45,7 +45,7 @@ def watched(*args)
4545
response = if (user_name = params.delete('user'))
4646
get_request("/users/#{user_name}/subscriptions", params)
4747
else
48-
get_request("/user/subscriptions", params)
48+
get_request('/user/subscriptions', params)
4949
end
5050
return response unless block_given?
5151
response.each { |el| yield el }

0 commit comments

Comments
 (0)