summaryrefslogtreecommitdiff
path: root/lib/github/user.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-04-19 20:04:58 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-04-24 16:17:52 -0300
commit782aab1319bdcfbe1634d4b33444e8ce5b57d394 (patch)
tree1995c7eae0095c423e0f2795ebb2389bc7992f0d /lib/github/user.rb
parentac1634fac9ef2891ef98d499fe6391d315b98b30 (diff)
downloadgitlab-ce-782aab1319bdcfbe1634d4b33444e8ce5b57d394.tar.gz
Pass a options hash to Github::Client
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