module Lucid::Shopify

Constants

Container
Error

Subclass this class for all gem exceptions, so that callers may rescue any subclass with:

rescue Lucid::Shopify::Error => e
VERSION

Public Class Methods

assert_api_version!(version) click to toggle source

@param version [String]

@raise [RuntimeError]

# File lib/lucid/shopify.rb, line 60
def assert_api_version!(version)
  raise "requires API version >= #{version}" if config.api_version < version
end
handlers() click to toggle source

Handlers for webhook topics.

@return [WebhookHandlerList]

@example

Lucid::Shopify.handlers.register('orders/create', OrdersCreateWebhook.new)

@example Call topic handlers

webhook = Webhook.new(myshopify_domain, topic, data)

Lucid::Shopify.handlers.delegate(webhook)
# File lib/lucid/shopify.rb, line 85
def handlers
  @handlers ||= WebhookHandlerList.new
end
webhooks() click to toggle source

Webhooks created for each shop.

@return [WebhookList]

@example

Lucid::Shopify.webhooks.register('orders/create', fields: 'id,tags')
# File lib/lucid/shopify.rb, line 70
def webhooks
  @webhooks ||= WebhookList.new
end