Class: SoqlHandler
- Inherits:
-
Soaspec::RestHandler
- Object
- Soaspec::RestHandler
- SoqlHandler
- Defined in:
- lib/leap_salesforce/soql_data/soql_handler.rb
Overview
Handles basic Soql interactions. These are done through classes that are tied to this handler, i.e, the SoqlData class. This is a service that handles all interactions with the API Credentials are stored either in ‘config/credentials’ folder or via environment variables To check out SOQL SCHEMA go to workbench.developerforce.com. Use Sandbox and login
Class Attribute Summary collapse
-
.api_version ⇒ String
Version of Salesforce API to use.
Class Method Summary collapse
-
.instance_url ⇒ String
The current Salesforce instance URL obtained from oauth call.
Instance Method Summary collapse
-
#access_token ⇒ String
Access token taken from sfdx.
-
#api_version ⇒ String
Version of Salesforce API to use.
-
#instance_url ⇒ String
Instance Url taken from sfdx.
Class Attribute Details
.api_version ⇒ String
Returns Version of Salesforce API to use.
46 47 48 |
# File 'lib/leap_salesforce/soql_data/soql_handler.rb', line 46 def api_version @api_version end |
Class Method Details
.instance_url ⇒ String
Returns The current Salesforce instance URL obtained from oauth call.
41 42 43 |
# File 'lib/leap_salesforce/soql_data/soql_handler.rb', line 41 def instance_url new.instance_url # Instance url is defined through oauth2_file method end |
Instance Method Details
#access_token ⇒ String
Returns Access token taken from sfdx.
18 19 20 |
# File 'lib/leap_salesforce/soql_data/soql_handler.rb', line 18 def access_token LeapSalesforce::Auth.access_token end |
#api_version ⇒ String
Returns Version of Salesforce API to use.
50 51 52 |
# File 'lib/leap_salesforce/soql_data/soql_handler.rb', line 50 def api_version SoqlHandler.api_version end |
#instance_url ⇒ String
Returns Instance Url taken from sfdx.
13 14 15 |
# File 'lib/leap_salesforce/soql_data/soql_handler.rb', line 13 def instance_url LeapSalesforce::Auth.instance_url end |