module GetGithubPubKeys::Connection

Public Class Methods

new(option) click to toggle source
# File lib/get_github_pub_keys/connection.rb, line 7
def self.new(option)
  Faraday.new(url: 'https://api.github.com') do |faraday|
    faraday.request :url_encoded
    faraday.request :json
    faraday.response :json, content_type: /\bjson$/
    faraday.response :logger
    faraday.adapter Faraday.default_adapter
  end
end