Get NoMethodError: undefined method `available_calls' for ShopifyAPI:Module. Shopify_api gem 10.0.3

I am trying to update the shopify_api gem version from 9.5.1 to 10.0.3 to our ruby based project.

But I had a problem using the available_calls method (also known as credit_left), which was present in the version 9.5.1.

I’m getting an error:

ShopifyAPI.available_calls> NoMethodError: undefined method `available_calls’ for ShopifyAPI: Module

Examining the changes in the gem code, I found that this method, along with its module, was removed.
So my question is whether this method was implemented in the new version of the library and what is it called now if it is present?

Thanks and best regards :wink:

Hey @gunnnner ,

Thanks for taking the time to create a post here in this API & SDK community forum board. I had a close look but couldn’t find any recent or related issues involving the error you shared.

If you feel you are facing any unexpected behavior with a library, such as the shopify_api gem, I’d recommend opening a new issue here in the GitHub Repo - this is generally the best place to ask questions concerning our API libraries.

  • Cheer!