Class: ShopifyApp::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/shopify_app/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



23
24
25
26
# File 'lib/shopify_app/configuration.rb', line 23

def initialize
  @routes = true
  @myshopify_domain = 'myshopify.com'
end

Instance Attribute Details

#api_keyObject

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_appObject 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
  @embedded_app
end

#myshopify_domainObject

configure myshopify domain for local shopify development



17
18
19
# File 'lib/shopify_app/configuration.rb', line 17

def myshopify_domain
  @myshopify_domain
end

#routesObject

use the built in session routes?



14
15
16
# File 'lib/shopify_app/configuration.rb', line 14

def routes
  @routes
end

#scopeObject

Returns the value of attribute scope.



9
10
11
# File 'lib/shopify_app/configuration.rb', line 9

def scope
  @scope
end

#secretObject

Returns the value of attribute secret.



8
9
10
# File 'lib/shopify_app/configuration.rb', line 8

def secret
  @secret
end

Instance Method Details

#routes_enabled?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/shopify_app/configuration.rb', line 19

def routes_enabled?
  @routes
end