Class: Sycsvpro::Joiner

Inherits:
Struct
  • Object
show all
Defined in:
lib/sycsvpro/join.rb

Overview

Joiner holds all join data as join columns, positions where to insert the columns from the source file, cols wich are the cols inserted from the source file and the lookup table with keys and associated column values. :call-seq:

Sycsvpro::Joiner.new([1,2], [3,4], [4,5,6], { rows: {} }

Instance Attribute Summary collapse

Instance Attribute Details

#colsObject

Returns the value of attribute cols

Returns:

  • (Object)

    the current value of cols



9
10
11
# File 'lib/sycsvpro/join.rb', line 9

def cols
  @cols
end

#joinObject

Returns the value of attribute join

Returns:

  • (Object)

    the current value of join



9
10
11
# File 'lib/sycsvpro/join.rb', line 9

def join
  @join
end

#lookupObject

Returns the value of attribute lookup

Returns:

  • (Object)

    the current value of lookup



9
10
11
# File 'lib/sycsvpro/join.rb', line 9

def lookup
  @lookup
end

#posObject

Returns the value of attribute pos

Returns:

  • (Object)

    the current value of pos



9
10
11
# File 'lib/sycsvpro/join.rb', line 9

def pos
  @pos
end