Class: RedshiftConnector::ImmediateExporter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bundle:, logger: RedshiftConnector.logger) ⇒ ImmediateExporter

Returns a new instance of ImmediateExporter.



6
7
8
9
# File 'lib/redshift_connector/immediate_exporter.rb', line 6

def initialize(bundle:, logger: RedshiftConnector.logger)
  @bundle = bundle
  @logger = logger
end

Instance Attribute Details

#bundleObject (readonly)

Returns the value of attribute bundle.



11
12
13
# File 'lib/redshift_connector/immediate_exporter.rb', line 11

def bundle
  @bundle
end

#loggerObject (readonly)

Returns the value of attribute logger.



12
13
14
# File 'lib/redshift_connector/immediate_exporter.rb', line 12

def logger
  @logger
end

Instance Method Details

#executeObject



14
15
16
17
# File 'lib/redshift_connector/immediate_exporter.rb', line 14

def execute
  @logger.info "USE #{@bundle.url}*"
  @bundle
end