Class: CNAB240::BancoABC::Entities::RegisterR

Inherits:
Base
  • Object
show all
Defined in:
lib/cnab240/bancoabc/entities/register_r.rb

Instance Method Summary collapse

Methods inherited from Base

#header?, #trailler?

Instance Method Details

#aviso_debito_automatico(data = nil) ⇒ Object



119
120
121
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 119

def aviso_debito_automatico(data = nil)
  prepend_zero(data, 1)
end

#cnab(data = nil) ⇒ Object



31
32
33
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 31

def cnab(data = nil)
  append_space(data, 1)
end

#cod_agencia_debito(data = nil) ⇒ Object



99
100
101
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 99

def cod_agencia_debito(data = nil)
  append_space(data, 5)
end

#cod_banco_conta_debito(data = nil) ⇒ Object



95
96
97
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 95

def cod_banco_conta_debito(data = nil)
  append_space(data, 3)
end

#cod_desconto_2(data = nil) ⇒ Object



39
40
41
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 39

def cod_desconto_2(data = nil)
  prepend_zero(data, 1)
end

#cod_desconto_3(data = nil) ⇒ Object



51
52
53
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 51

def cod_desconto_3(data = nil)
  prepend_zero(data, 1)
end

#cod_multa(data = nil) ⇒ Object



63
64
65
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 63

def cod_multa(data = nil)
  prepend_zero(data, 1)
end

#cod_ocorrencia_sacado(data = nil) ⇒ Object



91
92
93
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 91

def cod_ocorrencia_sacado(data = nil)
  prepend_zero(data, 8)
end

#codigo_banco(data = nil) ⇒ Object



11
12
13
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 11

def codigo_banco(data = nil)
  prepend_zero(data, 3)
end

#codigo_movimento(data = nil) ⇒ Object



35
36
37
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 35

def codigo_movimento(data = nil)
  prepend_zero(data, 2)
end

#conta_corrente_debito(data = nil) ⇒ Object



107
108
109
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 107

def conta_corrente_debito(data = nil)
  append_space(data, 12)
end

#data_desconto_2(data = nil) ⇒ Object



43
44
45
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 43

def data_desconto_2(data = nil)
  prepend_zero(data, 8)
end

#data_desconto_3(data = nil) ⇒ Object



55
56
57
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 55

def data_desconto_3(data = nil)
  prepend_zero(data, 8)
end

#data_multa(data = nil) ⇒ Object



67
68
69
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 67

def data_multa(data = nil)
  prepend_zero(data, 8)
end

#digito_verificador_agencia(data = nil) ⇒ Object



103
104
105
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 103

def digito_verificador_agencia(data = nil)
  append_space(data, 1)
end

#digito_verificador_agencia_conta(data = nil) ⇒ Object



115
116
117
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 115

def digito_verificador_agencia_conta(data = nil)
  append_space(data, 1)
end

#digito_verificador_conta(data = nil) ⇒ Object



111
112
113
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 111

def digito_verificador_conta(data = nil)
  append_space(data, 1)
end

#informacao_sacado(data = nil) ⇒ Object



75
76
77
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 75

def informacao_sacado(data = nil)
  prepend_zero(data, 10)
end

#lote_servico(data = nil) ⇒ Object



15
16
17
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 15

def lote_servico(data = nil)
  prepend_zero(data, 4)
end

#mensagem_3(data = nil) ⇒ Object



79
80
81
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 79

def mensagem_3(data = nil)
  append_space(data, 40)
end

#mensagem_4(data = nil) ⇒ Object



83
84
85
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 83

def mensagem_4(data = nil)
  append_space(data, 40)
end

#numero_registro(data = nil) ⇒ Object



23
24
25
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 23

def numero_registro(data = nil)
  prepend_zero(data, 5)
end

#register?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 7

def register?
  true
end

#segmentoObject



27
28
29
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 27

def segmento
  "R"
end

#tipo_registro(data = nil) ⇒ Object



19
20
21
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 19

def tipo_registro(data = nil)
  prepend_zero(data, 1)
end

#uso_exclusivo(data = nil) ⇒ Object



87
88
89
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 87

def uso_exclusivo(data = nil)
  append_space(data, 20)
end

#uso_exclusivo_cnab(data = nil) ⇒ Object



123
124
125
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 123

def uso_exclusivo_cnab(data = nil)
  append_space(data, 9)
end

#valor_desconto_2(data = nil) ⇒ Object



47
48
49
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 47

def valor_desconto_2(data = nil)
  prepend_zero(data, 15)
end

#valor_desconto_3(data = nil) ⇒ Object



59
60
61
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 59

def valor_desconto_3(data = nil)
  prepend_zero(data, 15)
end

#valor_multa(data = nil) ⇒ Object



71
72
73
# File 'lib/cnab240/bancoabc/entities/register_r.rb', line 71

def valor_multa(data = nil)
  prepend_zero(data, 15)
end