Class: ETL::Control::EnumerableSource

Inherits:
Source
  • Object
show all
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

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