Class: TransformXlsx::SingleDimensional
- Defined in:
- lib/transform_xlsx/single_dimensional.rb
Instance Attribute Summary
Attributes inherited from DataType
Instance Method Summary collapse
-
#initialize(file_path, sheet_number, start_row) ⇒ SingleDimensional
constructor
Go through each row and set first element in row as column, and rest of elements as values corresponding to each element in first row .
- #process_data ⇒ Object
Methods inherited from DataType
#to_hash, #to_json, #validate_input
Constructor Details
#initialize(file_path, sheet_number, start_row) ⇒ SingleDimensional
Go through each row and set first element in row as column, and rest of elements as values corresponding to each element in first row . data(r,c) = value
9 10 11 |
# File 'lib/transform_xlsx/single_dimensional.rb', line 9 def initialize file_path, sheet_number, start_row super(file_path, sheet_number, start_row) end |
Instance Method Details
#process_data ⇒ Object
13 14 15 |
# File 'lib/transform_xlsx/single_dimensional.rb', line 13 def process_data @data end |