Class: LeccaClient::Proposal::Customer
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- LeccaClient::Proposal::Customer
- Includes:
- Utils
- Defined in:
- lib/lecca_client/proposal/customer.rb
Instance Method Summary collapse
Methods included from Utils
#justify_number, #justify_string, #justify_value
Instance Method Details
#build ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/lecca_client/proposal/customer.rb', line 26 def build parts = '' parts << justify_string(nome, 60) parts << justify_number(nacionalidade, 5) parts << justify_string(estado_civil, 1) parts << justify_string(sexo, 1) parts << justify_string(numero_rg, 16) parts << justify_string(uf_rg, 2) parts << justify_string(uf_naturalidade, 2) parts << justify_string(naturalidade, 35) parts << justify_string(nome_pai, 35) parts << justify_string(nome_mae, 35) parts << justify_string(orgao_emissor_rg, 5) parts << justify_string(sigla_uf_outros_documentos, 2) parts << justify_string(descricao_profissao, 35) parts << justify_string(descricao_cargo, 35) parts << justify_number(cpf, 11) parts << justify_number(data_nascimento, 8) parts << justify_number(codigo_profissao, 8) parts << justify_value(valor_salario_liquido, 12) parts << justify_number(data_expedicao_rg, 8) parts << justify_string(observacao, 3000) end |