Changing default number of tries for Shopify API gem requests

Changing default number of tries for Shopify API gem requests

agramichael
Shopify Partner
1 0 0

I have a question regarding the Shopify API gem for Ruby.

It looks like the default number of tries for a request using the REST Admin client is 1.

From what I can see, the only way to change this value is by using the client methods directly, such as:

client.get(path: "...", tries: 2)

I am wondering if there is a way to change the default number of tries for requests made with the resource methods, such as: 

ShopifyAPI::Order.all(customer_id: ...)

If there isn't, are there plans for this to be supported? Or will I have to stick with using the client directly?

Replies 0 (0)