Class: Setl_tool

Inherits:
Object
  • Object
show all
Defined in:
lib/setl_tool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#extractObject (readonly)

Returns the value of attribute extract.



24
25
26
# File 'lib/setl_tool.rb', line 24

def extract
  @extract
end

#loadObject

Returns the value of attribute load.



26
27
28
# File 'lib/setl_tool.rb', line 26

def load
  @load
end

#target_dbObject

Returns the value of attribute target_db.



22
23
24
# File 'lib/setl_tool.rb', line 22

def target_db
  @target_db
end

#target_tableObject

Returns the value of attribute target_table.



23
24
25
# File 'lib/setl_tool.rb', line 23

def target_table
  @target_table
end

#transformObject (readonly)

Returns the value of attribute transform.



25
26
27
# File 'lib/setl_tool.rb', line 25

def transform
  @transform
end