Class: ETL::Control::EnumerableSource
- Defined in:
- lib/etl/control/source/enumerable_source.rb
Overview
Use an Enumerable as a source
Instance Attribute Summary
Attributes inherited from Source
#configuration, #control, #definition, #local_base, #store_locally
Instance Method Summary collapse
-
#each(&block) ⇒ Object
Iterate through the enumerable.
Methods inherited from Source
class_for_name, #errors, #initialize, #last_local_file, #last_local_file_trigger, #local_directory, #local_file, #local_file_trigger, #read_locally, #timestamp
Constructor Details
This class inherits a constructor from ETL::Control::Source
Instance Method Details
#each(&block) ⇒ Object
Iterate through the enumerable
6 7 8 |
# File 'lib/etl/control/source/enumerable_source.rb', line 6 def each(&block) configuration[:enumerable].each(&block) end |