Module: RedshiftConnector

Defined in:
lib/redshift_connector/reader.rb,
lib/redshift_connector/logger.rb,
lib/redshift_connector/reader.rb,
lib/redshift_connector/data_file.rb,
lib/redshift_connector/s3_bucket.rb,
lib/redshift_connector/reader/csv.rb,
lib/redshift_connector/reader/tsv.rb,
lib/redshift_connector/s3_data_file.rb,
lib/redshift_connector/url_data_file.rb,
lib/redshift_connector/reader/abstract.rb,
lib/redshift_connector/reader/exception.rb,
lib/redshift_connector/abstract_data_file.rb,
lib/redshift_connector/reader/redshift_csv.rb,
lib/redshift_connector/s3_data_file_bundle.rb,
lib/redshift_connector/url_data_file_bundle.rb,
lib/redshift_connector/abstract_data_file_bundle.rb

Overview

ensure to create module

Defined Under Namespace

Modules: Reader Classes: AbstractDataFile, AbstractDataFileBundle, NullLogger, S3Bucket, S3DataFile, S3DataFileBundle, UrlDataFile, UrlDataFileBundle

Class Method Summary collapse

Class Method Details

.get_reader_class(id) ⇒ Object



15
16
17
# File 'lib/redshift_connector/reader/abstract.rb', line 15

def self.get_reader_class(id)
  Reader::Abstract.get_reader_class(id)
end

.loggerObject



4
5
6
7
# File 'lib/redshift_connector/logger.rb', line 4

def RedshiftConnector.logger
  # Defer to access Rails
  @logger || Rails.logger
end

.logger=(logger) ⇒ Object



9
10
11
# File 'lib/redshift_connector/logger.rb', line 9

def RedshiftConnector.logger=(logger)
  @logger = logger
end