Class: ETL::Batch::Directive
- Inherits:
-
Object
- Object
- ETL::Batch::Directive
- Defined in:
- lib/etl/batch/directives.rb
Overview
Abstract base class for directives
Direct Known Subclasses
Instance Attribute Summary collapse
-
#batch ⇒ Object
readonly
Method to access the batch object.
Instance Method Summary collapse
-
#execute ⇒ Object
Execute the directive.
-
#initialize(batch) ⇒ Directive
constructor
Initialize the directive with the given batch object.
Constructor Details
#initialize(batch) ⇒ Directive
Initialize the directive with the given batch object
9 10 11 |
# File 'lib/etl/batch/directives.rb', line 9 def initialize(batch) @batch = batch end |
Instance Attribute Details
#batch ⇒ Object (readonly)
Method to access the batch object
6 7 8 |
# File 'lib/etl/batch/directives.rb', line 6 def batch @batch end |
Instance Method Details
#execute ⇒ Object
Execute the directive
14 15 16 |
# File 'lib/etl/batch/directives.rb', line 14 def execute do_execute end |