Class: GitHubWatched::API::User
Instance Attribute Summary collapse
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username) ⇒ User
constructor
A new instance of User.
- #watched ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(username) ⇒ User
Returns a new instance of User.
35 36 37 |
# File 'lib/github_watched/api.rb', line 35 def initialize(username) @username = username end |
Instance Attribute Details
#username ⇒ Object
Returns the value of attribute username.
33 34 35 |
# File 'lib/github_watched/api.rb', line 33 def username @username end |
Instance Method Details
#watched ⇒ Object
39 40 41 |
# File 'lib/github_watched/api.rb', line 39 def watched list "/users/#{CGI.escape(username)}/watched", :paginated => true, :klass => OctocatHerder::Repository end |