Class: OpenStax::Salesforce::Configuration
- Inherits:
-
Object
- Object
- OpenStax::Salesforce::Configuration
- Defined in:
- lib/openstax_salesforce.rb
Overview
See ‘config/initializers/openstax_salesforce.rb` for documentation on options
Instance Attribute Summary collapse
-
#authenticate_admin_proc ⇒ Object
Returns the value of attribute authenticate_admin_proc.
-
#check_sandbox_instance_url ⇒ Object
Returns the value of attribute check_sandbox_instance_url.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#page_heading_proc ⇒ Object
Returns the value of attribute page_heading_proc.
-
#salesforce_client_key ⇒ Object
Returns the value of attribute salesforce_client_key.
-
#salesforce_client_secret ⇒ Object
Returns the value of attribute salesforce_client_secret.
- #salesforce_login_site ⇒ Object
-
#sandbox_instance_url ⇒ Object
Returns the value of attribute sandbox_instance_url.
-
#sandbox_oauth_token ⇒ Object
Returns the value of attribute sandbox_oauth_token.
-
#sandbox_refresh_token ⇒ Object
Returns the value of attribute sandbox_refresh_token.
-
#skip_automatic_omniauth_setup ⇒ Object
Returns the value of attribute skip_automatic_omniauth_setup.
Instance Method Summary collapse
Instance Attribute Details
#authenticate_admin_proc ⇒ Object
Returns the value of attribute authenticate_admin_proc.
35 36 37 |
# File 'lib/openstax_salesforce.rb', line 35 def authenticate_admin_proc @authenticate_admin_proc end |
#check_sandbox_instance_url ⇒ Object
Returns the value of attribute check_sandbox_instance_url.
42 43 44 |
# File 'lib/openstax_salesforce.rb', line 42 def check_sandbox_instance_url @check_sandbox_instance_url end |
#layout ⇒ Object
Returns the value of attribute layout.
34 35 36 |
# File 'lib/openstax_salesforce.rb', line 34 def layout @layout end |
#page_heading_proc ⇒ Object
Returns the value of attribute page_heading_proc.
44 45 46 |
# File 'lib/openstax_salesforce.rb', line 44 def page_heading_proc @page_heading_proc end |
#salesforce_client_key ⇒ Object
Returns the value of attribute salesforce_client_key.
36 37 38 |
# File 'lib/openstax_salesforce.rb', line 36 def salesforce_client_key @salesforce_client_key end |
#salesforce_client_secret ⇒ Object
Returns the value of attribute salesforce_client_secret.
37 38 39 |
# File 'lib/openstax_salesforce.rb', line 37 def salesforce_client_secret @salesforce_client_secret end |
#salesforce_login_site ⇒ Object
46 47 48 |
# File 'lib/openstax_salesforce.rb', line 46 def salesforce_login_site @salesforce_login_site || "https://login.salesforce.com" end |
#sandbox_instance_url ⇒ Object
Returns the value of attribute sandbox_instance_url.
41 42 43 |
# File 'lib/openstax_salesforce.rb', line 41 def sandbox_instance_url @sandbox_instance_url end |
#sandbox_oauth_token ⇒ Object
Returns the value of attribute sandbox_oauth_token.
39 40 41 |
# File 'lib/openstax_salesforce.rb', line 39 def sandbox_oauth_token @sandbox_oauth_token end |
#sandbox_refresh_token ⇒ Object
Returns the value of attribute sandbox_refresh_token.
40 41 42 |
# File 'lib/openstax_salesforce.rb', line 40 def sandbox_refresh_token @sandbox_refresh_token end |
#skip_automatic_omniauth_setup ⇒ Object
Returns the value of attribute skip_automatic_omniauth_setup.
43 44 45 |
# File 'lib/openstax_salesforce.rb', line 43 def skip_automatic_omniauth_setup @skip_automatic_omniauth_setup end |
Instance Method Details
#salesforce_client_options ⇒ Object
50 51 52 |
# File 'lib/openstax_salesforce.rb', line 50 def { site: salesforce_login_site } end |
#salesforce_login_domain ⇒ Object
54 55 56 |
# File 'lib/openstax_salesforce.rb', line 54 def salesforce_login_domain Addressable::URI.parse(salesforce_login_site).host end |