Class: Column

Inherits:
Object show all
Includes:
FromHash
Defined in:
lib/dataload/column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blkObject

Returns the value of attribute blk.



3
4
5
# File 'lib/dataload/column.rb', line 3

def blk
  @blk
end

#column_typeObject

Returns the value of attribute column_type.



3
4
5
# File 'lib/dataload/column.rb', line 3

def column_type
  @column_type
end

#target_nameObject

Returns the value of attribute target_name.



3
4
5
# File 'lib/dataload/column.rb', line 3

def target_name
  @target_name
end

Instance Method Details

#target_value(row) ⇒ Object



4
5
6
# File 'lib/dataload/column.rb', line 4

def target_value(row)
  row.instance_eval(&blk)
end