class LeccaClient::Proposal::Address

Public Instance Methods

build() click to toggle source
# 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

Private Instance Methods

pais() click to toggle source
# File lib/lecca_client/proposal/address.rb, line 35
def pais
  1 # fixed value from Lecca docs
end
tipo_residencia() click to toggle source
# File lib/lecca_client/proposal/address.rb, line 31
def tipo_residencia
  1 # fixed value from Lecca docs
end