Class: Cnab240::V80::SegmentoA

Inherits:
BinData::Record show all
Includes:
DefaultMixin, SegmentoMixin
Defined in:
lib/cnab240/segmentos/v80/segmento_a.rb

Instance Attribute Summary

Attributes included from SegmentoMixin

#lote

Instance Method Summary collapse

Methods included from DefaultMixin

#initialize_instance

Methods inherited from BinData::Record

#linha

Instance Method Details

#get_favorecido_agencia_contaObject



48
49
50
51
52
53
54
55
56
57
# File 'lib/cnab240/segmentos/v80/segmento_a.rb', line 48

def get_favorecido_agencia_conta
  case favorecido_banco
    when '341'
      return 1
    when '409'
      return 1
    else
      return 2
  end
end