Class: ShopifyGraphql::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_environmentsObject

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_namespaceObject

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

#webhooksObject

Returns the value of attribute webhooks.



3
4
5
# File 'lib/shopify_graphql/configuration.rb', line 3

def webhooks
  @webhooks
end

#webhooks_manager_queue_nameObject

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

Returns:

  • (Boolean)


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

def has_webhooks?
  webhooks.present?
end