Class: Ductr::ETL::Source

Inherits:
Control
  • Object
show all
Defined in:
lib/ductr/etl/controls/source.rb

Overview

The base class for implementing sources.

Direct Known Subclasses

PaginatedSource, SequelBase::BasicSource

Instance Attribute Summary

Attributes inherited from Control

#adapter, #job_method, #options

Instance Method Summary collapse

Methods inherited from Control

#call_method, #initialize

Constructor Details

This class inherits a constructor from Ductr::ETL::Control

Instance Method Details

#each {|row| ... } ⇒ void

This method returns an undefined value.

Iterates over rows.

Yields:

  • (row)

    The row yielder



16
17
18
# File 'lib/ductr/etl/controls/source.rb', line 16

def each(&)
  call_method.each(&)
end