Class: ShopifyGraphql::Configuration
- Inherits:
-
Object
- Object
- ShopifyGraphql::Configuration
- Defined in:
- lib/shopify_graphql/configuration.rb
Instance Attribute Summary collapse
-
#webhook_enabled_environments ⇒ Object
Returns the value of attribute webhook_enabled_environments.
-
#webhook_jobs_namespace ⇒ Object
Returns the value of attribute webhook_jobs_namespace.
-
#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_webhooks? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 |
# File 'lib/shopify_graphql/configuration.rb', line 8 def initialize @webhooks_manager_queue_name = Rails.application.config.active_job.queue_name @webhook_enabled_environments = ['production'] end |
Instance Attribute Details
#webhook_enabled_environments ⇒ Object
Returns the value of attribute webhook_enabled_environments.
5 6 7 |
# File 'lib/shopify_graphql/configuration.rb', line 5 def webhook_enabled_environments @webhook_enabled_environments end |
#webhook_jobs_namespace ⇒ Object
Returns the value of attribute webhook_jobs_namespace.
4 5 6 |
# File 'lib/shopify_graphql/configuration.rb', line 4 def webhook_jobs_namespace @webhook_jobs_namespace end |
#webhooks ⇒ Object
Returns the value of attribute webhooks.
3 4 5 |
# File 'lib/shopify_graphql/configuration.rb', line 3 def webhooks @webhooks end |
#webhooks_manager_queue_name ⇒ Object
Returns the value of attribute webhooks_manager_queue_name.
6 7 8 |
# File 'lib/shopify_graphql/configuration.rb', line 6 def webhooks_manager_queue_name @webhooks_manager_queue_name end |
Instance Method Details
#has_webhooks? ⇒ Boolean
13 14 15 |
# File 'lib/shopify_graphql/configuration.rb', line 13 def has_webhooks? webhooks.present? end |