lib/mrkt.rb in mrkt-0.6.2 vs lib/mrkt.rb in mrkt-0.7.0

- old
+ new

@@ -7,10 +7,11 @@ require 'mrkt/concerns/crud_campaigns' require 'mrkt/concerns/crud_leads' require 'mrkt/concerns/crud_lists' require 'mrkt/concerns/import_leads' require 'mrkt/concerns/crud_custom_objects' +require 'mrkt/concerns/crud_custom_activities' require 'mrkt/concerns/crud_programs' module Mrkt class Client include Connection @@ -19,18 +20,28 @@ include CrudCampaigns include CrudLeads include CrudLists include ImportLeads include CrudCustomObjects + include CrudCustomActivities include CrudPrograms attr_accessor :debug def initialize(options = {}) @host = options.fetch(:host) @client_id = options.fetch(:client_id) @client_secret = options.fetch(:client_secret) + + @retry_authentication = options.fetch(:retry_authentication, false) + @retry_authentication_count = options.fetch(:retry_authentication_count, 3).to_i + @retry_authentication_wait_seconds = options.fetch(:retry_authentication_wait_seconds, 0).to_i + + @debug = options[:debug] + + @logger = options[:logger] + @log_options = options[:log_options] @options = options end %i(get post delete).each do |http_method|