Module: GithubAPI::Connection
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
6 7 8 9 10 11 12 13 14 |
# 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 |