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.



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

def initialize
  @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



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

def myshopify_domain
  @myshopify_domain
end

#scopeObject

Returns the value of attribute scope.



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

def scope
  @scope
end

#scripttagsObject

Returns the value of attribute scripttags.



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

def scripttags
  @scripttags
end

#secretObject

Returns the value of attribute secret.



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

def secret
  @secret
end

#webhooksObject

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

Returns:

  • (Boolean)


26
27
28
# File 'lib/shopify_app/configuration.rb', line 26

def has_scripttags?
  scripttags.present?
end

#has_webhooks?Boolean

Returns:

  • (Boolean)


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

def has_webhooks?
  webhooks.present?
end