Class: ShopifyApp::Configuration
- Inherits:
-
Object
- Object
- ShopifyApp::Configuration
- Defined in:
- lib/shopify_app/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#application_name ⇒ Object
Shopify App settings.
-
#embedded_app ⇒ Object
(also: #embedded_app?)
Returns the value of attribute embedded_app.
-
#myshopify_domain ⇒ Object
configure myshopify domain for local shopify development.
-
#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.
-
#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.
23 24 25 |
# File 'lib/shopify_app/configuration.rb', line 23 def initialize @myshopify_domain = 'myshopify.com' end |
Instance Attribute Details
#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 |
#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.
11 12 13 |
# File 'lib/shopify_app/configuration.rb', line 11 def @embedded_app end |
#myshopify_domain ⇒ Object
configure myshopify domain for local shopify development
21 22 23 |
# File 'lib/shopify_app/configuration.rb', line 21 def myshopify_domain @myshopify_domain end |
#scope ⇒ Object
Returns the value of attribute scope.
10 11 12 |
# File 'lib/shopify_app/configuration.rb', line 10 def scope @scope end |
#scripttags ⇒ Object
Returns the value of attribute scripttags.
14 15 16 |
# File 'lib/shopify_app/configuration.rb', line 14 def @scripttags end |
#scripttags_manager_queue_name ⇒ Object
customise ActiveJob queue names
17 18 19 |
# File 'lib/shopify_app/configuration.rb', line 17 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 |
#webhooks ⇒ Object
Returns the value of attribute webhooks.
13 14 15 |
# File 'lib/shopify_app/configuration.rb', line 13 def webhooks @webhooks end |
#webhooks_manager_queue_name ⇒ Object
Returns the value of attribute webhooks_manager_queue_name.
18 19 20 |
# File 'lib/shopify_app/configuration.rb', line 18 def webhooks_manager_queue_name @webhooks_manager_queue_name end |
Instance Method Details
#has_scripttags? ⇒ Boolean
31 32 33 |
# File 'lib/shopify_app/configuration.rb', line 31 def .present? end |
#has_webhooks? ⇒ Boolean
27 28 29 |
# File 'lib/shopify_app/configuration.rb', line 27 def has_webhooks? webhooks.present? end |