Class: CSVDecision::Columns::Dictionary

Inherits:
Object
  • Object
show all
Defined in:
lib/csv_decision/columns.rb

Overview

Dictionary of all data columns. The key of each hash is the header cell’s array column index. Note that input and output columns can be interspersed and need not have unique names.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDictionary

TODO: Input columns with a default value (planned feature) attr_accessor :defaults



33
34
35
36
37
38
# File 'lib/csv_decision/columns.rb', line 33

def initialize
  @ins = {}
  @outs = {}
  # TODO: @path = {}
  # TODO: @defaults = {}
end

Instance Attribute Details

#insHash{Integer=>Entry}

Input columns.

Returns:

  • (Hash{Integer=>Entry})

    All input column dictionary entries.



21
22
23
# File 'lib/csv_decision/columns.rb', line 21

def ins
  @ins
end

#outsHash{Integer=>Entry}

Output columns.

Returns:

  • (Hash{Integer=>Entry})

    All output column dictionary entries.



25
26
27
# File 'lib/csv_decision/columns.rb', line 25

def outs
  @outs
end