Class: Mrkt::Client
- Inherits:
-
Object
- Object
- Mrkt::Client
- Includes:
- Authentication, Connection, CrudLeads, 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 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
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( = {}) @host = .fetch(:host) @client_id = .fetch(:client_id) @client_secret = .fetch(:client_secret) @options = end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
16 17 18 |
# File 'lib/mrkt.rb', line 16 def debug @debug end |