Class: LeccaClient::Proposal::Address

Inherits:
Hashie::Dash
  • Object
show all
Includes:
Utils
Defined in:
lib/lecca_client/proposal/address.rb

Instance Method Summary collapse

Methods included from Utils

#justify_number, #justify_string, #justify_value

Instance Method Details

#buildObject



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/lecca_client/proposal/address.rb', line 15

def build
  parts = ''

  parts << justify_number(tipo_residencia, 1)
  parts << justify_string(endereco, 60)
  parts << justify_number(numero, 5)
  parts << justify_string(complemento, 30)
  parts << justify_string(uf, 2)
  parts << justify_string(bairro, 30)
  parts << justify_string(cidade, 40)
  parts << justify_number(pais, 5)
  parts << justify_string(cep, 8)
end