Class: CsvRowModel::Import::Csv::Row
- Inherits:
-
Object
- Object
- CsvRowModel::Import::Csv::Row
- Defined in:
- lib/csv_row_model/import/csv/row.rb
Instance Attribute Summary collapse
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#skipped_rows ⇒ Object
readonly
Returns the value of attribute skipped_rows.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(row, index, skipped_rows) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(row, index, skipped_rows) ⇒ Row
Returns a new instance of Row.
7 8 9 |
# File 'lib/csv_row_model/import/csv/row.rb', line 7 def initialize(row, index, skipped_rows) @row, @index, @skipped_rows = row, index, skipped_rows end |
Instance Attribute Details
#row ⇒ Object (readonly)
Returns the value of attribute row.
5 6 7 |
# File 'lib/csv_row_model/import/csv/row.rb', line 5 def row @row end |
#skipped_rows ⇒ Object (readonly)
Returns the value of attribute skipped_rows.
5 6 7 |
# File 'lib/csv_row_model/import/csv/row.rb', line 5 def skipped_rows @skipped_rows end |
Instance Method Details
#empty? ⇒ Boolean
11 12 13 |
# File 'lib/csv_row_model/import/csv/row.rb', line 11 def empty? !!row.try(:empty?) end |