Class: LeccaClient::Proposal::Phone

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

Instance Method Summary collapse

Methods included from Utils

#justify_number, #justify_string, #justify_value

Instance Method Details

#buildObject



12
13
14
15
16
17
18
19
20
# File 'lib/lecca_client/proposal/phone.rb', line 12

def build
  parts = ''

  parts << justify_string(ddd_telefone, 4)
  parts << justify_number(telefone, 12)
  parts << justify_number(celular, 12)
  parts << justify_string(email, 50)
  parts << justify_string(ddd_celular, 4)
end