Method: QB::GitHub::API.client
- Defined in:
- lib/qb/github/api.rb
.client ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/qb/github/api.rb', line 30 def self.client @client ||= if token = ENV['GH_TOKEN'] Octokit::Client.new access_token: token else Octokit::Client.new end end |