lib/get_response.rb in get_response-0.1.0 vs lib/get_response.rb in get_response-0.1.1
- old
+ new
@@ -1,22 +1,24 @@
require 'faraday'
require "get_response/version"
require "get_response/request"
require "get_response/api"
require "get_response/response"
+require 'logger'
module GetResponse
class << self
def configure
yield(configuration)
+ configuration.logger ||= Logger.new(STDOUT)
end
def configuration
@config ||= Config.new
end
alias_method :config, :configuration
end
class Config
- attr_accessor :api_key, :verbose, :api_endpoint, :domain_header, :api_version
+ attr_accessor :api_key, :verbose, :api_endpoint, :domain_header, :api_version, :logger
end
end