Created
April 25, 2016 11:26
-
-
Save denoww/c6e235896e97e65e6ecdc0f33dd82442 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Duas formas de organizar cobranças vencidas e jurídicas | |
Abordagem A | |
Cobranca.vencidas | |
|-------------------| cob.vencida? # true | |
cob.atraso = 100 dias | |
cob.vencidas # retorna lista das vencidas, mas não as juridicas | |
Cobranca.juridicas | |
|-------------------| cob.vencida? # false | |
cob.atraso = 100 dias | |
Abordagem B | |
Cobranca.vencidas | |
|---------------------------------------| cob.vencida? # true | |
cob.atraso = 100 dias | |
cob.vencidas # retorna lista das vencidas e juridicas | |
Cobranca.juridicas | |
|-------------------| cob.vencida? # true | |
cob.atraso = 100 dias |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment