module ActiveCampaign::Config
Constants
- VALID_OPTION_KEYS
The list of available options
Public Instance Methods
api_logger()
click to toggle source
# File lib/active-campaign-simple/config.rb, line 33 def api_logger @api_logger || ActiveCampaign::Logger.new end
configure() { |self| ... }
click to toggle source
Convenience method to allow configuration options to be set in a block
# File lib/active-campaign-simple/config.rb, line 18 def configure yield self end
options()
click to toggle source
Create a hash of options and their values
# File lib/active-campaign-simple/config.rb, line 23 def options options = {} VALID_OPTION_KEYS.each{|k| options[k] = send(k)} options end
user_agent()
click to toggle source
# File lib/active-campaign-simple/config.rb, line 29 def user_agent @user_agent ||= "active-campaign-simple-#{VERSION} (RubyGem)" end