Module: ShopifyAPIRetry
- Defined in:
- lib/shopify_api_retry.rb
Defined Under Namespace
Classes: Config, GraphQL, REST, Request
Constant Summary
collapse
- VERSION =
"0.2.0"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
88
89
90
|
# File 'lib/shopify_api_retry.rb', line 88
def self.config
@config
end
|
82
83
84
85
86
|
# File 'lib/shopify_api_retry.rb', line 82
def self.configure
return @config unless block_given?
yield @config
nil
end
|
.retry(cfg = nil, &block) ⇒ Object
205
206
207
208
|
# File 'lib/shopify_api_retry.rb', line 205
def retry(cfg = nil, &block)
warn "#{name}.retry has been deprecated, use ShopifyAPIRetry::REST.retry or ShopifyAPIRetry::GraphQL.retry"
REST.new(cfg).retry(&block)
end
|