Class: Locomotive::ContentEntryImport
- Inherits:
-
Object
- Object
- Locomotive::ContentEntryImport
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/locomotive/concerns/content_type/import.rb
Instance Attribute Summary collapse
-
#col_sep ⇒ Object
Returns the value of attribute col_sep.
-
#file ⇒ Object
Returns the value of attribute file.
-
#quote_char ⇒ Object
Returns the value of attribute quote_char.
Instance Method Summary collapse
Instance Attribute Details
#col_sep ⇒ Object
Returns the value of attribute col_sep.
110 111 112 |
# File 'app/models/locomotive/concerns/content_type/import.rb', line 110 def col_sep @col_sep end |
#file ⇒ Object
Returns the value of attribute file.
110 111 112 |
# File 'app/models/locomotive/concerns/content_type/import.rb', line 110 def file @file end |
#quote_char ⇒ Object
Returns the value of attribute quote_char.
110 111 112 |
# File 'app/models/locomotive/concerns/content_type/import.rb', line 110 def quote_char @quote_char end |
Instance Method Details
#file? ⇒ Boolean
120 121 122 |
# File 'app/models/locomotive/concerns/content_type/import.rb', line 120 def file? file.present? end |
#options ⇒ Object
116 117 118 |
# File 'app/models/locomotive/concerns/content_type/import.rb', line 116 def { col_sep: col_sep || ',', quote_char: quote_char || "\"" } end |