Class: Setl_tool
- Inherits:
-
Object
- Object
- Setl_tool
- Defined in:
- lib/setl_tool.rb
Instance Attribute Summary collapse
-
#extract ⇒ Object
readonly
Returns the value of attribute extract.
-
#load ⇒ Object
Returns the value of attribute load.
-
#target_db ⇒ Object
Returns the value of attribute target_db.
-
#target_table ⇒ Object
Returns the value of attribute target_table.
-
#transform ⇒ Object
readonly
Returns the value of attribute transform.
Instance Method Summary collapse
-
#initialize(src_type = "csv", headers = false, src_path) ⇒ Setl_tool
constructor
TODO Change headers to true.
Constructor Details
#initialize(src_type = "csv", headers = false, src_path) ⇒ Setl_tool
TODO Change headers to true
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/setl_tool.rb', line 29 def initialize(src_type = "csv", headers = false, src_path) @src_type = src_type @headers = headers @src_path = src_path @extract = Extract.new(@src_type, @headers, @src_path) @transform = Transform.new #@load = Load.new end |
Instance Attribute Details
#extract ⇒ Object (readonly)
Returns the value of attribute extract.
24 25 26 |
# File 'lib/setl_tool.rb', line 24 def extract @extract end |
#load ⇒ Object
Returns the value of attribute load.
26 27 28 |
# File 'lib/setl_tool.rb', line 26 def load @load end |
#target_db ⇒ Object
Returns the value of attribute target_db.
22 23 24 |
# File 'lib/setl_tool.rb', line 22 def target_db @target_db end |
#target_table ⇒ Object
Returns the value of attribute target_table.
23 24 25 |
# File 'lib/setl_tool.rb', line 23 def target_table @target_table end |
#transform ⇒ Object (readonly)
Returns the value of attribute transform.
25 26 27 |
# File 'lib/setl_tool.rb', line 25 def transform @transform end |