Module: Jinx::Migration::Reader

Includes:
Enumerable
Defined in:
lib/jinx/migration/reader.rb

Overview

A prototypical source reader which enumerates the input records.

Instance Method Summary collapse

Instance Method Details

#accessor(name) ⇒ Symbol

Returns the record value accessor symbol, e.g. :first_name.

Parameters:

  • name (String)

    the migration mapping source field name, e.g. First Name

Returns:

  • (Symbol)

    the record value accessor symbol, e.g. :first_name



9
# File 'lib/jinx/migration/reader.rb', line 9

def accessor(name); end

#each {|rec| ... } ⇒ Object

Yields:

  • (rec)

    migrate the source record

Yield Parameters:

  • rec ({Symbol => Object})

    the source accessor => value record



13
# File 'lib/jinx/migration/reader.rb', line 13

def each; end