Class: Issues::Github::Connection
- Inherits:
-
Object
- Object
- Issues::Github::Connection
- Includes:
- Singleton
- Defined in:
- lib/issues/github/connection.rb
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
6 7 8 9 10 |
# File 'lib/issues/github/connection.rb', line 6 def connection @conn ||= Faraday.new(:url => "https://api.github.com") @conn.basic_auth(Github.username, Github.password) unless Github.password.nil? @conn end |