Module: GetGithubPubKeys::Connection
- Included in:
- Client
- Defined in:
- lib/get_github_pub_keys/connection.rb
Class Method Summary collapse
Class Method Details
.new(option) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# 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 |