summaryrefslogtreecommitdiff
path: root/lib/github/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/github/user.rb')
-rw-r--r--lib/github/user.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/github/user.rb b/lib/github/user.rb
index 19fe6230820..f88a29e590b 100644
--- a/lib/github/user.rb
+++ b/lib/github/user.rb
@@ -1,9 +1,10 @@
module Github
class User
- attr_reader :username
+ attr_reader :username, :options
- def initialize(username)
+ def initialize(username, options)
@username = username
+ @options = options
end
def get
@@ -13,7 +14,7 @@ module Github
private
def client
- @client ||= Github::Client.new
+ @client ||= Github::Client.new(options)
end
def user_url