Class: Githubris::User
Instance Method Summary collapse
Methods inherited from Base
#==, #initialize, #swap_attributes
Constructor Details
This class inherits a constructor from Githubris::Base
Instance Method Details
#gists(options = {}) ⇒ Object
5 6 7 |
# File 'lib/githubris/user.rb', line 5 def gists(={}) @api.get_user_gists(@attributes[:login]) end |
#reload ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/githubris/user.rb', line 13 def reload swap_attributes @api.get_user @attributes[:login] rescue Githubris::Error => error case error when Githubris::Error::NotFound raise end end |
#starred_gists(options = {}) ⇒ Object
9 10 11 |
# File 'lib/githubris/user.rb', line 9 def starred_gists(={}) @api.get_user_starred_gists() end |