module Compropago
Constants
- VERSION
Public Class Methods
api_key()
click to toggle source
# File lib/compropago/configuration.rb, line 9 def self.api_key @api_key end
api_key=(api_key)
click to toggle source
# File lib/compropago/configuration.rb, line 17 def self.api_key=(api_key) @api_key = api_key ActiveRestClient::Base.faraday_config do |faraday| faraday.request :basic_auth, api_key, nil faraday.request :url_encoded # form-encode POST params faraday.response :logger # log requests to STDOUT faraday.response :raise_error faraday.adapter Faraday.default_adapter # make requests with Net::HTTP #FIXME https://github.com/lostisland/faraday/wiki/Setting-up-SSL-certificates#solutions-to-avoid faraday.ssl.merge!({ verify: false }) end end
api_url()
click to toggle source
# File lib/compropago/configuration.rb, line 13 def self.api_url ActiveRestClient::Base.base_url end
api_url=(api_url)
click to toggle source
# File lib/compropago/configuration.rb, line 31 def self.api_url=(api_url) ActiveRestClient::Base.base_url = api_url end