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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lienvdsteen opened this issue Dec 9, 2019 · 1 comment
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

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

No branches or pull requests

2 participants