Class: Kinabo::Bradesco::Remessa::Builder

Inherits:
Hashie::Dash
  • Object
show all
Includes:
Hashie::Extensions::Dash::Coercion, Utils
Defined in:
lib/kinabo/bradesco/remessa/builder.rb

Instance Method Summary collapse

Methods included from Utils

#fill_sequencial, #justify_number, #justify_string, #justify_value, #parse_date, #parse_decimal, #parse_number, #parse_string

Instance Method Details

#buildObject



11
12
13
14
15
# File 'lib/kinabo/bradesco/remessa/builder.rb', line 11

def build
  lines = [header, boletos, Trailler.new].flatten.map(&:build)

  fill_sequencial(lines.flatten)
end