Class: Pipeline::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/etl-pipeline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



78
79
80
81
# File 'lib/etl-pipeline.rb', line 78

def initialize
  @parser   = Pipeline::Parser::Base
  @importer = Pipeline::Importer::Base
end

Instance Attribute Details

#importerObject

Returns the value of attribute importer.



76
77
78
# File 'lib/etl-pipeline.rb', line 76

def importer
  @importer
end

#parserObject

Returns the value of attribute parser.



76
77
78
# File 'lib/etl-pipeline.rb', line 76

def parser
  @parser
end

Instance Method Details

#import(*args) ⇒ Object



87
88
89
# File 'lib/etl-pipeline.rb', line 87

def import *args
  importer.import *args
end

#parse(*args) ⇒ Object



83
84
85
# File 'lib/etl-pipeline.rb', line 83

def parse *args
  parser.parse *args
end