class Eloquant::Client
Constants
- DEFAULT_HOST_URL
Public Class Methods
new(options = {})
click to toggle source
# File lib/eloquant.rb, line 40 def initialize(options = {}) # Required @username = options.fetch(:username, ENV["ELOQUA_USERNAME"]) @sitename = options.fetch(:sitename, ENV["ELOQUA_SITENAME"]) @password = options.fetch(:password, ENV["ELOQUA_PASSWORD"]) # Optional @max_retries = options.fetch(:max_retries, 10) @connection = options.fetch(:connection, nil) @debug = options.fetch(:debug, true) @logger = options.fetch(:logger, nil) @host = options.fetch(:host, DEFAULT_HOST_URL) @options = options end
Public Instance Methods
set_host_url_if_default()
click to toggle source
# File lib/eloquant.rb, line 74 def set_host_url_if_default if @host == DEFAULT_HOST_URL set_host_url_to_clients_url end end