Class: UniversalDataParser::DataSet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnsObject

Returns the value of attribute columns.



12
13
14
# File 'lib/universal_data_parser.rb', line 12

def columns
  @columns
end

#headersObject

Returns the value of attribute headers.



14
15
16
# File 'lib/universal_data_parser.rb', line 14

def headers
  @headers
end

#itemsObject

Returns the value of attribute items.



13
14
15
# File 'lib/universal_data_parser.rb', line 13

def items
  @items
end

#raw_dataObject

Returns the value of attribute raw_data.



15
16
17
# File 'lib/universal_data_parser.rb', line 15

def raw_data
  @raw_data
end