require 'logger' module Leadsquared class Config attr_accessor :key, :secret, :endpoint, :logger def logger @logger ||= Logger.new(STDERR) end end def self.configure yield config end def self.config @config ||= Config.new end end