Class: RedshiftConnector::ImmediateExporter
- Inherits:
-
Object
- Object
- RedshiftConnector::ImmediateExporter
- Defined in:
- lib/redshift_connector/immediate_exporter.rb
Instance Attribute Summary collapse
-
#bundle ⇒ Object
readonly
Returns the value of attribute bundle.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(bundle:, logger: RedshiftConnector.logger) ⇒ ImmediateExporter
constructor
A new instance of ImmediateExporter.
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
#bundle ⇒ Object (readonly)
Returns the value of attribute bundle.
11 12 13 |
# File 'lib/redshift_connector/immediate_exporter.rb', line 11 def bundle @bundle end |
#logger ⇒ Object (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
#execute ⇒ Object
14 15 16 17 |
# File 'lib/redshift_connector/immediate_exporter.rb', line 14 def execute @logger.info "USE #{@bundle.url}*" @bundle end |