lib/etl/transform/foreign_key_lookup_transform.rb
# Match the row field from the column indicated by the match_index with the given 
# value and return the field value from the column identified by the result_field_index.
Match the row field from the column indicated by the match_index with the given
value and return the field value from the column identified by the result_field_index.
Match the row field from the column indicated by the match_index with the given value and return the field value from the column identified by the result_field_index .
def resolve(value)
    rows.each do |row|
      if row[@match_index] == value
        return row[@result_field_index]
      end
    end
    nil
  end
def resolve ( value ) rows . each do | row | if row [ @match_index ] == value return row [ @result_field_index ] end end nil end
Match the row field from the column indicated by the match_index with the given
value and return the field value from the column identified by the result_field_index.
Match the row field from the column indicated by the match_index with the given value and return the field value from the column identified by the result_field_index .
#puts "checking #{row.inspect} for #{value}" #puts "match found!, returning #{row[@result_field_index]}"
value
<not_specific>