Class: SalesforceHttpClient::Client
- Inherits:
-
Object
- Object
- SalesforceHttpClient::Client
- Includes:
- SalesforceHttpAccess
- Defined in:
- lib/salesforce_http_client/client.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#logger ⇒ Object
Returns the value of attribute logger.
Attributes included from SalesforceHttpAccess
Instance Method Summary collapse
- #download_report(report_id, output_save_path, override_if_exists = false) ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
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
#initialize ⇒ Client
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
#config ⇒ Object
Returns the value of attribute config.
7 8 9 |
# File 'lib/salesforce_http_client/client.rb', line 7 def config @config end |
#logger ⇒ Object
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 |