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.
-
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 |
# File 'lib/shopify_app/configuration.rb', line 17 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.
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
15 16 17 |
# File 'lib/shopify_app/configuration.rb', line 15 def myshopify_domain @myshopify_domain end |
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
9 10 11 |
# File 'lib/shopify_app/configuration.rb', line 9 def redirect_uri @redirect_uri end |
#scope ⇒ Object
Returns the value of attribute scope.
10 11 12 |
# File 'lib/shopify_app/configuration.rb', line 10 def scope @scope end |
#secret ⇒ Object
Returns the value of attribute secret.
8 9 10 |
# File 'lib/shopify_app/configuration.rb', line 8 def secret @secret end |