Class: ShopifyApp::Configuration
- Inherits:
-
Object
- Object
- ShopifyApp::Configuration
- Defined in:
- lib/shopify_app/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ 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.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#webhooks ⇒ Object
Returns the value of attribute webhooks.
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.
18 19 20 |
# File 'lib/shopify_app/configuration.rb', line 18 def initialize @myshopify_domain = 'myshopify.com' end |
Instance Attribute Details
#api_key ⇒ 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 api_key @api_key end |
#embedded_app ⇒ Object Also known as: embedded_app?
Returns the value of attribute embedded_app.
10 11 12 |
# File 'lib/shopify_app/configuration.rb', line 10 def @embedded_app end |
#myshopify_domain ⇒ Object
configure myshopify domain for local shopify development
16 17 18 |
# File 'lib/shopify_app/configuration.rb', line 16 def myshopify_domain @myshopify_domain end |
#scope ⇒ Object
Returns the value of attribute scope.
9 10 11 |
# File 'lib/shopify_app/configuration.rb', line 9 def scope @scope end |
#scripttags ⇒ Object
Returns the value of attribute scripttags.
13 14 15 |
# File 'lib/shopify_app/configuration.rb', line 13 def @scripttags end |
#secret ⇒ Object
Returns the value of attribute secret.
8 9 10 |
# File 'lib/shopify_app/configuration.rb', line 8 def secret @secret end |
#webhooks ⇒ Object
Returns the value of attribute webhooks.
12 13 14 |
# File 'lib/shopify_app/configuration.rb', line 12 def webhooks @webhooks end |
Instance Method Details
#has_scripttags? ⇒ Boolean
26 27 28 |
# File 'lib/shopify_app/configuration.rb', line 26 def .present? end |
#has_webhooks? ⇒ Boolean
22 23 24 |
# File 'lib/shopify_app/configuration.rb', line 22 def has_webhooks? webhooks.present? end |