Module: ShopifyUtil

Defined in:
lib/shopify_util.rb,
lib/shopify_util/error.rb,
lib/shopify_util/config.rb,
lib/shopify_util/version.rb,
lib/shopify_util/product/list.rb,
lib/shopify_util/customer/list.rb,
lib/shopify_util/product/clean.rb,
lib/shopify_util/customer/clean.rb,
lib/shopify_util/product/backup.rb,
lib/shopify_util/customer/create.rb,
lib/shopify_util/product/get_quantity.rb

Defined Under Namespace

Modules: Customer, Product Classes: Configuration, Error

Constant Summary collapse

VERSION =
'0.1.0'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationConfiguration


7
8
9
# File 'lib/shopify_util/config.rb', line 7

def configuration
  @configuration
end

Class Method Details

.configure {|config| ... } ⇒ Object

Modify ShopifyUtil's current configuration. Example:

ShopifyUtil.configure do |config|
  config.shop_name = 'my-shop'
end

Yield Parameters:


19
20
21
22
# File 'lib/shopify_util/config.rb', line 19

def self.configure
  @configuration ||= Configuration.new
  yield(configuration)
end

.resetvoid

This method returns an undefined value.

Reset ShopifyUtil's configuration.


26
27
28
# File 'lib/shopify_util/config.rb', line 26

def self.reset
  @configuration = Configuration.new
end