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

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

Class Method Summary collapse

Class Method Details

.define_template(template) ⇒ Object



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

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