Module: CsvRowModel::Import

Extended by:
ActiveSupport::Concern
Includes:
Concerns::Inspect, Attributes, Base, DynamicColumns, Model::Comparison
Defined in:
lib/csv_row_model/import.rb,
lib/csv_row_model/import/csv.rb,
lib/csv_row_model/import/base.rb,
lib/csv_row_model/import/file.rb,
lib/csv_row_model/import/presenter.rb,
lib/csv_row_model/import/attributes.rb,
lib/csv_row_model/import/file_model.rb,
lib/csv_row_model/import/file/callbacks.rb,
lib/csv_row_model/import/dynamic_columns.rb,
lib/csv_row_model/import/file/validations.rb

Overview

Include this to with Model to have a RowModel for importing csvs that represents just one model. It needs CsvRowModel::Import

Defined Under Namespace

Modules: Attributes, Base, DynamicColumns, FileModel Classes: Csv, File, Presenter

Constant Summary

Constants included from Attributes

Attributes::CLASS_TO_PARSE_LAMBDA, Attributes::PARSE_VALIDATION_CLASSES

Instance Attribute Summary

Attributes included from Base

#context, #index, #previous, #source_header, #source_row

Method Summary

Methods included from Model::Comparison

#eql?, #hash

Methods included from DynamicColumns

define_dynamic_attribute_method, dynamic_column, dynamic_source_headers, #dynamic_source_headers, #dynamic_source_row, format_dynamic_column_cells, #original_attribute, #original_attributes

Methods included from Attributes

add_type_validation, column, #default_changes, default_lambda, define_attribute_method, format_cell, merge_options, #original_attribute, #original_attribute_memoized?, #original_attributes, parse_lambda

Methods included from Base

#abort?, #csv_string_model, #free_previous, #initialize, inspect_methods, #mapped_row, next, presenter, #presenter, presenter_class, #skip?, #valid?

Methods included from Concerns::Inspect

#inspect