Class: LeccaClient::Proposal::Builder

Inherits:
Hashie::Dash
  • Object
show all
Includes:
Hashie::Extensions::Dash::Coercion
Defined in:
lib/lecca_client/proposal/builder.rb

Instance Method Summary collapse

Instance Method Details

#lineObject



14
15
16
# File 'lib/lecca_client/proposal/builder.rb', line 14

def line
  [operacao, cliente, endereco, telefone, emprego, conta_bancaria, fundo].map(&:build).reduce(:+)
end

#uploadObject



18
19
20
# File 'lib/lecca_client/proposal/builder.rb', line 18

def upload
  LeccaClient::Uploader.new(line, filename).upload
end