Class: SimpleXlsxReader::Document::Sheet

Inherits:
Struct
  • Object
show all
Defined in:
lib/simple_xlsx_reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



51
52
53
# File 'lib/simple_xlsx_reader.rb', line 51

def name
  @name
end

#rowsObject

Returns the value of attribute rows

Returns:

  • (Object)

    the current value of rows



51
52
53
# File 'lib/simple_xlsx_reader.rb', line 51

def rows
  @rows
end

Instance Method Details

#dataObject



56
57
58
# File 'lib/simple_xlsx_reader.rb', line 56

def data
  rows[1..-1]
end

#headersObject



52
53
54
# File 'lib/simple_xlsx_reader.rb', line 52

def headers
  rows[0]
end

#load_errorsObject

Load errors will be a hash of the form:

[rownum, colnum] => '[error]'



64
65
66
# File 'lib/simple_xlsx_reader.rb', line 64

def load_errors
  @load_errors ||= {}
end