Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api_object.present? does not work #1283

Closed
jasonbuehler opened this issue Feb 22, 2024 · 2 comments
Closed

api_object.present? does not work #1283

jasonbuehler opened this issue Feb 22, 2024 · 2 comments

Comments

@jasonbuehler
Copy link

An unexpected error is raised when calling api_object.present?, NameError ('@empty?' is not allowed as an instance variable name)

  • shopify_api version: 13.4.0
  • Ruby version: 2.7.7
  • Operating system: Mac OS 12.6 Monterey

Expected behavior

If the object is not nil it should return true, otherwise it should return false

Actual behavior

An non-relevant error was raised NameError ('@empty?' is not allowed as an instance variable name)

Steps to reproduce the problem

  1. Instantiate an api object api_product = shop.with_shopify_session { ShopifyAPI::Product.new }
  2. Invoke .present? on the object api_product.present?
@sle-c
Copy link
Contributor

sle-c commented Feb 26, 2024

Related to #1171

@sle-c
Copy link
Contributor

sle-c commented Feb 26, 2024

Hi @jasonbuehler ,

Thank you for opening this issue, this is related to the one you opened here
#1273

I'll close this issue for now because it's a duplicate.

Si Le

@sle-c sle-c closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants