module GithubAPI::Connection

Public Instance Methods

connection() click to toggle source
# File lib/pghub/github_api/connection.rb, line 6
def connection
  Faraday.new(url: 'https://api.github.com',
              ssl: { verify: true }) do |faraday|
    faraday.request :multipart
    faraday.request :url_encoded
    faraday.response :raise_error
    faraday.adapter :net_http
  end
end