class BigMarkerClient::Config
Attributes
api_key[W]
base_url[W]
debug[W]
log[W]
logger[RW]
Public Class Methods
api_key()
click to toggle source
# File lib/big_marker_client/config.rb, line 11 def api_key @api_key ||= ENV["BIGMARKER_API_KEY"] end
base_url()
click to toggle source
# File lib/big_marker_client/config.rb, line 7 def base_url @base_url ||= "https://www.bigmarker.com/api/v1" end
debug()
click to toggle source
# File lib/big_marker_client/config.rb, line 19 def debug @debug ||= false if @debug && @logger.nil? require "logger" @logger ||= defined?(Rails.logger) ? Rails.logger : ::Logger.new($stdout) end @debug end
log()
click to toggle source
# File lib/big_marker_client/config.rb, line 15 def log @log ||= false end