Class: Mrkt::Client

Inherits:
Object
  • Object
show all
Includes:
Authentication, Connection, CrudLeads, ImportLeads
Defined in:
lib/mrkt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ImportLeads

#import_lead, #import_lead_failures, #import_lead_status, #import_lead_warnings

Methods included from CrudLeads

#associate_lead, #createupdate_leads, #delete_leads, #get_leads, #json_payload

Methods included from Authentication

#add_authorization, #authenticate, #authenticate!, #authenticated?, #authentication_params, #valid_token?

Methods included from Connection

#connection, #init_connection

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



18
19
20
21
22
23
24
25
# File 'lib/mrkt.rb', line 18

def initialize(options = {})
  @host = options.fetch(:host)

  @client_id = options.fetch(:client_id)
  @client_secret = options.fetch(:client_secret)

  @options = options
end

Instance Attribute Details

#debugObject

Returns the value of attribute debug.



16
17
18
# File 'lib/mrkt.rb', line 16

def debug
  @debug
end