Skip to content

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

@lienvdsteen

Description

@lienvdsteen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions