Class: Loadmop::Loader
- Inherits:
-
Object
- Object
- Loadmop::Loader
- Includes:
- Sequelizer
- Defined in:
- lib/loadmop/loader.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data_files_dir ⇒ Object
readonly
Returns the value of attribute data_files_dir.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #create_database ⇒ Object
-
#initialize(data_files_dir, options = {}) ⇒ Loader
constructor
A new instance of Loader.
Constructor Details
#initialize(data_files_dir, options = {}) ⇒ Loader
Returns a new instance of Loader.
11 12 13 14 15 |
# File 'lib/loadmop/loader.rb', line 11 def initialize(data_files_dir, = {}) @data_files_dir = Pathname.new(data_files_dir) = @headers = {} end |
Instance Attribute Details
#data_files_dir ⇒ Object (readonly)
Returns the value of attribute data_files_dir.
9 10 11 |
# File 'lib/loadmop/loader.rb', line 9 def data_files_dir @data_files_dir end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
9 10 11 |
# File 'lib/loadmop/loader.rb', line 9 def headers @headers end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/loadmop/loader.rb', line 9 def end |
Instance Method Details
#create_database ⇒ Object
17 18 19 20 21 |
# File 'lib/loadmop/loader.rb', line 17 def create_database create_tables load_files create_indexes end |