Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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