Class: Mrkt::Client
- Inherits:
-
Object
- Object
- Mrkt::Client
- Includes:
- Authentication, Connection, CrudActivities, CrudCampaigns, CrudCustomActivities, CrudCustomObjects, CrudHelpers, CrudLeads, CrudLists, CrudPrograms, ImportCustomObjects, ImportLeads
- Defined in:
- lib/mrkt.rb
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from CrudPrograms
#browse_programs, #get_program_by_id
Methods included from CrudCustomActivities
#create_custom_activity, #get_list_of_custom_activity_types
Methods included from CrudCustomObjects
#createupdate_custom_objects, #delete_custom_objects, #describe_custom_object, #get_custom_objects, #get_list_of_custom_objects
Methods included from ImportCustomObjects
#import_custom_object, #import_custom_object_failures, #import_custom_object_status, #import_custom_object_warnings
Methods included from ImportLeads
#import_lead, #import_lead_failures, #import_lead_status, #import_lead_warnings
Methods included from CrudLists
#add_leads_to_list, #get_leads_by_list
Methods included from CrudLeads
#associate_lead, #createupdate_leads, #delete_leads, #get_leads, #merge_leads
Methods included from CrudCampaigns
Methods included from CrudActivities
#get_activities, #get_activity_types, #get_paging_token
Methods included from CrudHelpers
Methods included from Authentication
#add_authorization, #authenticate, #authenticate!, #authenticated?, #authentication_params, #valid_token?
Methods included from Connection
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/mrkt.rb', line 34 def initialize( = {}) @host = .fetch(:host) @client_id = .fetch(:client_id) @client_secret = .fetch(:client_secret) @retry_authentication = .fetch(:retry_authentication, false) @retry_authentication_count = .fetch(:retry_authentication_count, 3).to_i @retry_authentication_wait_seconds = .fetch(:retry_authentication_wait_seconds, 0).to_i @debug = [:debug] @logger = [:logger] @log_options = [:log_options] @options = end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
32 33 34 |
# File 'lib/mrkt.rb', line 32 def debug @debug end |