Skip to content

Instantly share code, notes, and snippets.

@Kamilahsantos
Created May 26, 2019 23:13
Show Gist options
  • Save Kamilahsantos/4283a0b283e5690da96f9b22b5bcb7fb to your computer and use it in GitHub Desktop.
Save Kamilahsantos/4283a0b283e5690da96f9b22b5bcb7fb to your computer and use it in GitHub Desktop.
class ContaBancaria
attr_accessor : taxa_juros
def juros_por_dias(numero_de_dias, dias)
@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