Module: Brcobranca::Boleto::Template::Base

Extended by:
Base
Included in:
Base, Base
Defined in:
lib/brcobranca/boleto/template/base.rb

Instance Method Summary collapse

Instance Method Details

#define_template(template) ⇒ Object


10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/brcobranca/boleto/template/base.rb', line 10

def define_template(template)
  case template
  when :rghost
    [Brcobranca::Boleto::Template::Rghost]
  when :rghost_carne
    [Brcobranca::Boleto::Template::RghostCarne]
  when :both
    [Brcobranca::Boleto::Template::Rghost, Brcobranca::Boleto::Template::RghostCarne]
  else
    [Brcobranca::Boleto::Template::Rghost]
  end
end