Class: ShopifyApp::Configuration
- Inherits:
-
Object
- Object
- ShopifyApp::Configuration
- Defined in:
- lib/shopify_app/configuration.rb
Instance Attribute Summary collapse
-
#after_authenticate_job ⇒ Object
Returns the value of attribute after_authenticate_job.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#application_name ⇒ Object
Shopify App settings.
-
#embedded_app ⇒ Object
(also: #embedded_app?)
Returns the value of attribute embedded_app.
-
#login_url ⇒ Object
Returns the value of attribute login_url.
-
#myshopify_domain ⇒ Object
configure myshopify domain for local shopify development.
-
#old_secret ⇒ Object
Returns the value of attribute old_secret.
-
#root_url ⇒ Object
customise urls.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#scripttags ⇒ Object
Returns the value of attribute scripttags.
-
#scripttags_manager_queue_name ⇒ Object
customise ActiveJob queue names.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#session_repository ⇒ Object
Returns the value of attribute session_repository.
-
#webhook_jobs_namespace ⇒ Object
allow namespacing webhook jobs.
-
#webhooks ⇒ Object
Returns the value of attribute webhooks.
-
#webhooks_manager_queue_name ⇒ Object
Returns the value of attribute webhooks_manager_queue_name.
Instance Method Summary collapse
- #has_scripttags? ⇒ Boolean
- #has_webhooks? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
34 35 36 37 38 39 |
# File 'lib/shopify_app/configuration.rb', line 34 def initialize @root_url = '/' @myshopify_domain = 'myshopify.com' @scripttags_manager_queue_name = Rails.application.config.active_job.queue_name @webhooks_manager_queue_name = Rails.application.config.active_job.queue_name end |
Instance Attribute Details
#after_authenticate_job ⇒ Object
Returns the value of attribute after_authenticate_job.
16 17 18 |
# File 'lib/shopify_app/configuration.rb', line 16 def after_authenticate_job @after_authenticate_job end |
#api_key ⇒ Object
Returns the value of attribute api_key.
8 9 10 |
# File 'lib/shopify_app/configuration.rb', line 8 def api_key @api_key end |
#api_version ⇒ Object
Returns the value of attribute api_version.
18 19 20 |
# File 'lib/shopify_app/configuration.rb', line 18 def api_version @api_version end |
#application_name ⇒ Object
Shopify App settings. These values should match the configuration for the app in your Shopify Partners page. Change your settings in ‘config/initializers/shopify_app.rb`
7 8 9 |
# File 'lib/shopify_app/configuration.rb', line 7 def application_name @application_name end |
#embedded_app ⇒ Object Also known as: embedded_app?
Returns the value of attribute embedded_app.
12 13 14 |
# File 'lib/shopify_app/configuration.rb', line 12 def @embedded_app end |
#login_url ⇒ Object
Returns the value of attribute login_url.
22 23 24 |
# File 'lib/shopify_app/configuration.rb', line 22 def login_url @login_url end |
#myshopify_domain ⇒ Object
configure myshopify domain for local shopify development
29 30 31 |
# File 'lib/shopify_app/configuration.rb', line 29 def myshopify_domain @myshopify_domain end |
#old_secret ⇒ Object
Returns the value of attribute old_secret.
10 11 12 |
# File 'lib/shopify_app/configuration.rb', line 10 def old_secret @old_secret end |
#root_url ⇒ Object
customise urls
21 22 23 |
# File 'lib/shopify_app/configuration.rb', line 21 def root_url @root_url end |
#scope ⇒ Object
Returns the value of attribute scope.
11 12 13 |
# File 'lib/shopify_app/configuration.rb', line 11 def scope @scope end |
#scripttags ⇒ Object
Returns the value of attribute scripttags.
15 16 17 |
# File 'lib/shopify_app/configuration.rb', line 15 def @scripttags end |
#scripttags_manager_queue_name ⇒ Object
customise ActiveJob queue names
25 26 27 |
# File 'lib/shopify_app/configuration.rb', line 25 def @scripttags_manager_queue_name end |
#secret ⇒ Object
Returns the value of attribute secret.
9 10 11 |
# File 'lib/shopify_app/configuration.rb', line 9 def secret @secret end |
#session_repository ⇒ Object
Returns the value of attribute session_repository.
17 18 19 |
# File 'lib/shopify_app/configuration.rb', line 17 def session_repository @session_repository end |
#webhook_jobs_namespace ⇒ Object
allow namespacing webhook jobs
32 33 34 |
# File 'lib/shopify_app/configuration.rb', line 32 def webhook_jobs_namespace @webhook_jobs_namespace end |
#webhooks ⇒ Object
Returns the value of attribute webhooks.
14 15 16 |
# File 'lib/shopify_app/configuration.rb', line 14 def webhooks @webhooks end |
#webhooks_manager_queue_name ⇒ Object
Returns the value of attribute webhooks_manager_queue_name.
26 27 28 |
# File 'lib/shopify_app/configuration.rb', line 26 def webhooks_manager_queue_name @webhooks_manager_queue_name end |
Instance Method Details
#has_scripttags? ⇒ Boolean
59 60 61 |
# File 'lib/shopify_app/configuration.rb', line 59 def .present? end |
#has_webhooks? ⇒ Boolean
55 56 57 |
# File 'lib/shopify_app/configuration.rb', line 55 def has_webhooks? webhooks.present? end |