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
- @client = Bamboozled.client(subdomain: 'your_subdomain', api_key: 'your_api_key')
- @client.meta.tables
- Error
Potential solution
Remove the [:tables] part in the meta#tables method.
Description
The
meta#tablesmethod expects that the response of the API is a hash with atableskey. 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 IntegerExpected behavior
No error happens and you can get the tables array.
How To Reproduce
Potential solution
Remove the
[:tables]part in themeta#tablesmethod.