Class: SalesforceHttpClient::Client

Inherits:
Object
  • Object
show all
Includes:
SalesforceHttpAccess
Defined in:
lib/salesforce_http_client/client.rb

Instance Attribute Summary collapse

Attributes included from SalesforceHttpAccess

#http_client

Instance Method Summary collapse

Methods included from SalesforceHttpAccess

#create_http_client, #download_and_save_report, #download_from_salesforce, #respond_to_redirect, #salesforce_login, #salesforce_logout, #save_report

Constructor Details

#initializeClient

Returns a new instance of Client.



10
11
12
13
# File 'lib/salesforce_http_client/client.rb', line 10

def initialize
  @config = Configuration.instance
  @logger = config.logger
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



7
8
9
# File 'lib/salesforce_http_client/client.rb', line 7

def config
  @config
end

#loggerObject

Returns the value of attribute logger.



8
9
10
# File 'lib/salesforce_http_client/client.rb', line 8

def logger
  @logger
end

Instance Method Details

#download_report(report_id, output_save_path, override_if_exists = false) ⇒ Object



15
16
17
18
# File 'lib/salesforce_http_client/client.rb', line 15

def download_report(report_id, output_save_path, override_if_exists = false)
  return if check_override_ng(output_save_path, override_if_exists)
  download_from_salesforce(output_save_path, report_id)
end