Class: Issues::Github::Connection

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/issues/github/connection.rb

Instance Method Summary collapse

Instance Method Details

#connectionObject



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