Class: UniversalDataParser::DataSet
- Inherits:
-
Object
- Object
- UniversalDataParser::DataSet
- Defined in:
- lib/universal_data_parser.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#items ⇒ Object
Returns the value of attribute items.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
Instance Method Summary collapse
-
#initialize(raw_data) ⇒ DataSet
constructor
A new instance of DataSet.
Constructor Details
#initialize(raw_data) ⇒ DataSet
Returns a new instance of DataSet.
17 18 19 20 21 |
# File 'lib/universal_data_parser.rb', line 17 def initialize(raw_data) @raw_data = raw_data guess_columns generate_data end |
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
12 13 14 |
# File 'lib/universal_data_parser.rb', line 12 def columns @columns end |
#headers ⇒ Object
Returns the value of attribute headers.
14 15 16 |
# File 'lib/universal_data_parser.rb', line 14 def headers @headers end |
#items ⇒ Object
Returns the value of attribute items.
13 14 15 |
# File 'lib/universal_data_parser.rb', line 13 def items @items end |
#raw_data ⇒ Object
Returns the value of attribute raw_data.
15 16 17 |
# File 'lib/universal_data_parser.rb', line 15 def raw_data @raw_data end |