Class: Importer::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/iron/import/importer.rb

Overview

Inner class for holding load-time data that gets reset on each load call

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeData

Returns a new instance of Data.



90
91
92
93
94
# File 'lib/iron/import/importer.rb', line 90

def initialize
  @start_row = nil
  @rows = []
  @errors = []
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



89
90
91
# File 'lib/iron/import/importer.rb', line 89

def errors
  @errors
end

#rowsObject

Returns the value of attribute rows.



89
90
91
# File 'lib/iron/import/importer.rb', line 89

def rows
  @rows
end

#start_rowObject

Returns the value of attribute start_row.



89
90
91
# File 'lib/iron/import/importer.rb', line 89

def start_row
  @start_row
end