Module: Avmtrf1::InventarioSistemas::Parser::Body

Defined in:
lib/avmtrf1/inventario_sistemas/parser/body.rb

Instance Method Summary collapse

Instance Method Details

#body_rows_offsetObject



21
22
23
# File 'lib/avmtrf1/inventario_sistemas/parser/body.rb', line 21

def body_rows_offset
  Header::HEADER_ROW_OFFSET + Header::HEADER_ROWS_SIZE
end

#body_rows_uncachedObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/avmtrf1/inventario_sistemas/parser/body.rb', line 9

def body_rows_uncached
  index = 0
  r = []
  loop do
    raw_row_i = BODY_OFFSET + index
    return r if raw_row_i > sheet.last_row

    r << sheet.row(raw_row_i).map { |v| v.to_s.strip }
    index += 1
  end
end