Class: CNAB240::BancoABC::Entities::RegisterQ

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

Instance Method Summary collapse

Methods inherited from Base

#header?, #trailler?

Instance Method Details

#bairro(data = nil) ⇒ Object



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

def bairro(data = nil)
  append_space(data, 15)
end

#banco_correspondente(data = "0") ⇒ Object



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

def banco_correspondente(data = "0")
  prepend_zero(data, 3)
end

#cep(data = nil) ⇒ Object



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

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

#cidade(data = nil) ⇒ Object



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

def cidade(data = nil)
  append_space(data, 15)
end

#cnab(data = nil) ⇒ Object



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

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

#codigo_banco(data = nil) ⇒ Object



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

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

#codigo_movimento(data = nil) ⇒ Object



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

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

#endereco(data = nil) ⇒ Object



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

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

#lote_servico(data = nil) ⇒ Object



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

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

#nome(data = nil) ⇒ Object



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

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

#nome_sac(data = nil) ⇒ Object



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

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

#nosso_numero_banco(data = nil) ⇒ Object



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

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

#numero_inscricao(data = nil) ⇒ Object



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

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

#numero_inscricao_sac(data = nil) ⇒ Object



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

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

#numero_registro(data = nil) ⇒ Object



23
24
25
# File 'lib/cnab240/bancoabc/entities/register_q.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_q.rb', line 7

def register?
  true
end

#segmentoObject



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

def segmento
  "Q"
end

#sufixo_cep(data = nil) ⇒ Object



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

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

#tipo_inscricao(data = nil) ⇒ Object



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

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

#tipo_inscricao_sac(data = nil) ⇒ Object



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

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

#tipo_registro(data = nil) ⇒ Object



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

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

#uf(data = nil) ⇒ Object



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

def uf(data = nil)
  append_space(data, 2)
end

#uso_livre(data = nil) ⇒ Object



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

def uso_livre(data = nil)
  append_space(data, 8)
end