Class: RedshiftExtractor::Extractor

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

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Extractor

Returns a new instance of Extractor.



3
4
5
# File 'lib/redshift_extractor/extractor.rb', line 3

def initialize(args)
  @args = args
end

Instance Method Details

#configObject



7
8
9
# File 'lib/redshift_extractor/extractor.rb', line 7

def config
  @config ||= OpenStruct.new(@args)
end

#runObject



11
12
13
14
# File 'lib/redshift_extractor/extractor.rb', line 11

def run
  unload
  copy
end