Skip to content

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.

3 participants