Class: SimpleXlsxReader::Document::Sheet
- Inherits:
-
Struct
- Object
- Struct
- SimpleXlsxReader::Document::Sheet
- Defined in:
- lib/simple_xlsx_reader.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#rows ⇒ Object
Returns the value of attribute rows.
Instance Method Summary collapse
- #data ⇒ Object
- #headers ⇒ Object
-
#load_errors ⇒ Object
Load errors will be a hash of the form: { [rownum, colnum] => ‘[error]’ }.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
51 52 53 |
# File 'lib/simple_xlsx_reader.rb', line 51 def name @name end |
#rows ⇒ Object
Returns the value of attribute rows
51 52 53 |
# File 'lib/simple_xlsx_reader.rb', line 51 def rows @rows end |
Instance Method Details
#data ⇒ Object
56 57 58 |
# File 'lib/simple_xlsx_reader.rb', line 56 def data rows[1..-1] end |
#headers ⇒ Object
52 53 54 |
# File 'lib/simple_xlsx_reader.rb', line 52 def headers rows[0] end |
#load_errors ⇒ Object
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 |