Skip to content

Instantly share code, notes, and snippets.

@pedrolopesme
Created November 11, 2013 21:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pedrolopesme/7420508 to your computer and use it in GitHub Desktop.
# Banco Itaú
class BoletoItau < Boleto
def gerar_header
puts("Header do Boleto para o Banco Itau")
end
def gerar_footer
puts("Footer do Boleto : Esse boleto deve ser pago no Banco Itau mais proximo")
end
end
# Banco Santander
class BoletoSantander < Boleto
def gerar_header
puts("Header do Boleto para o Banco Santander")
end
def gerar_footer
puts("Footer do Boleto : Esse boleto deve ser pago no Banco Santander mais proximo")
end
end
# E finalmente o Banco do Brasil
class BoletoBancoBrasil < Boleto
def gerar_header
puts("Header do Boleto para o Banco do Brasil")
end
def gerar_footer
puts("Footer do Boleto : Esse boleto deve ser pago no Banco do Brasil mais proximo")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment