Skip to content

Improve update balance #291

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

Merged
merged 2 commits into from
Jan 18, 2018
Merged

Improve update balance #291

merged 2 commits into from
Jan 18, 2018

Conversation

sauloperez
Copy link
Collaborator

This adds specs to Account#update_balance, docs and refactors the method a bit. It extracts compound conditionals, adds some doc and emphasizes problems that arise from the current implementation such as the fact that max_allowed_balance it's either Integer or Float.

It extracts compound conditionals, adds some doc and emphasizes problems
that arise from the current implementation such as the fact that
max_allowed_balance it's either Integer or Float.
@sauloperez sauloperez force-pushed the improve-update-balance branch from dfe1f92 to 36a1063 Compare January 18, 2018 08:57
@sauloperez
Copy link
Collaborator Author

thanks for the quick review @enricostano!

@sauloperez sauloperez merged commit c80c92d into develop Jan 18, 2018
@sauloperez sauloperez deleted the improve-update-balance branch January 18, 2018 09:08
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

Successfully merging this pull request may close these issues.

2 participants