Skip to content

Instantly share code, notes, and snippets.

@Kamilahsantos
Last active May 26, 2019 23:52
Show Gist options
  • Save Kamilahsantos/39339c4ffcc86c4aa448bc8aec43d08e to your computer and use it in GitHub Desktop.
Save Kamilahsantos/39339c4ffcc86c4aa448bc8aec43d08e to your computer and use it in GitHub Desktop.
class ContaCorrente
attr_accessor : taxa_juros
end
class ContaBancaria
def juros_por_dias(numero_de_dias, dias)
@contacorrente.taxa_juros * numero_de_dias * dias / 365;
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment