Class: Locomotive::ContentEntryImport

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/locomotive/concerns/content_type/import.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#col_sepObject

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

#fileObject

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_charObject

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

Returns:



120
121
122
# File 'app/models/locomotive/concerns/content_type/import.rb', line 120

def file?
  file.present?
end

#optionsObject



116
117
118
# File 'app/models/locomotive/concerns/content_type/import.rb', line 116

def options
  { col_sep: col_sep || ',', quote_char: quote_char || "\"" }
end