Method: Column#initialize
- Defined in:
- lib/asker/data/column.rb
#initialize(row, index, xml_data) ⇒ Column
Returns a new instance of Column.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/asker/data/column.rb', line 17 def initialize(row, index, xml_data) @row = row @index = index @id = "#{@row.id}.#{@index}" @raw = "" @lang = @row.langs[@index] @type = @row.types[@index] @simple = {lang: true, type: true} read_data_from_xml(xml_data) end |