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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Smartcar::User.user_id method #1

Open
vickodin opened this issue Mar 12, 2021 · 0 comments
Open

Broken Smartcar::User.user_id method #1

vickodin opened this issue Mar 12, 2021 · 0 comments

Comments

@vickodin
Copy link
Owner

vickodin commented Mar 12, 2021

Some troubles:

  1. In case of no data parameter here, there will be an error (try use nil as a a hash), but we don't have any hash as params here (USER_PATH only).

  2. There is a required instance's method (unit_system) here, that is missing in the User.

  3. Also, any method (get, post, etc) returns an array with two elements: body and meta here, but we use a hash here (['id']).

As result, we can't invoke user_id method without raise errors.

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

No branches or pull requests

1 participant