diff options
| author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-19 20:04:58 -0300 |
|---|---|---|
| committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-24 16:17:52 -0300 |
| commit | 782aab1319bdcfbe1634d4b33444e8ce5b57d394 (patch) | |
| tree | 1995c7eae0095c423e0f2795ebb2389bc7992f0d /lib/github/user.rb | |
| parent | ac1634fac9ef2891ef98d499fe6391d315b98b30 (diff) | |
| download | gitlab-ce-782aab1319bdcfbe1634d4b33444e8ce5b57d394.tar.gz | |
Pass a options hash to Github::Client
Diffstat (limited to 'lib/github/user.rb')
| -rw-r--r-- | lib/github/user.rb | 7 |
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 |
