Class: CSVImportable::RowImporter
- Inherits:
-
Object
- Object
- CSVImportable::RowImporter
- Includes:
- CSVCoercion
- Defined in:
- lib/csv_importable/row_importer.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
Instance Method Summary collapse
- #import_row ⇒ Object
-
#initialize(args = {}) ⇒ RowImporter
constructor
A new instance of RowImporter.
Methods included from CSVCoercion
#boolean_type_class, #date_type_class, #float_type_class, #integer_type_class, #percent_type_class, #select_type_class, #string_type_class
Constructor Details
#initialize(args = {}) ⇒ RowImporter
Returns a new instance of RowImporter.
6 7 8 9 10 |
# File 'lib/csv_importable/row_importer.rb', line 6 def initialize(args = {}) @row = args[:row] @headers = args[:headers] after_init(args) end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
4 5 6 |
# File 'lib/csv_importable/row_importer.rb', line 4 def headers @headers end |
#row ⇒ Object (readonly)
Returns the value of attribute row.
4 5 6 |
# File 'lib/csv_importable/row_importer.rb', line 4 def row @row end |
Instance Method Details
#import_row ⇒ Object
12 13 14 |
# File 'lib/csv_importable/row_importer.rb', line 12 def import_row # hook for subclasses end |