Skip to content
New issue

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

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

Already on GitHub? # to your account

🐛 Meta#tables method not reflective of what the API returns #71

Open
lienvdsteen opened this issue Dec 9, 2019 · 2 comments
Open
Labels

Comments

@lienvdsteen
Copy link

Description

The meta#tables method expects that the response of the API is a hash with a tables key. But the response is an Array. Because the method is expecting this key to be present, the following error occurs when you use this method:

TypeError: no implicit conversion of Symbol into Integer

Expected behavior

No error happens and you can get the tables array.

How To Reproduce

  1. @client = Bamboozled.client(subdomain: 'your_subdomain', api_key: 'your_api_key')
  2. @client.meta.tables
  3. Error

Potential solution

Remove the [:tables] part in the meta#tables method.

@lienvdsteen lienvdsteen added the bug label Dec 9, 2019
@lienvdsteen lienvdsteen mentioned this issue Dec 9, 2019
8 tasks
@splybon
Copy link
Contributor

splybon commented Dec 9, 2019

Hi @lienvdsteen thanks for the issue and PR! We will try to look at this within the next couple of days

@bharateq
Copy link

This still not reflected in latest version.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants