Class: CSVDecision::Columns::Dictionary Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Dictionary of all table data columns. The key of each hash is the header cell’s array column index. Note that input and output columns may be interspersed, and multiple input columns may refer to the same input hash key symbol. However, output columns must have unique symbols, which cannot overlap with input column symbols.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDictionary

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Dictionary.



35
36
37
38
39
40
41
# File 'lib/csv_decision/columns.rb', line 35

def initialize
  @columns = {}
  @defaults = {}
  @ifs = {}
  @ins = {}
  @outs = {}
end

Instance Attribute Details

#columnsHash{Integer=>Entry}

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns All column names.

Returns:

  • (Hash{Integer=>Entry})

    All column names.



19
20
21
# File 'lib/csv_decision/columns.rb', line 19

def columns
  @columns
end

#defaultsHash{Integer=>Entry}

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns All defaulted input column dictionary entries. This is actually just a subset of :ins.

Returns:

  • (Hash{Integer=>Entry})

    All defaulted input column dictionary entries. This is actually just a subset of :ins.



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

def defaults
  @defaults
end

#ifsHash{Integer=>Entry}

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns All if: column dictionary entries. This is actually just a subset of :outs.

Returns:

  • (Hash{Integer=>Entry})

    All if: column dictionary entries. This is actually just a subset of :outs.



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

def ifs
  @ifs
end

#insHash{Integer=>Entry}

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns All input column dictionary entries.

Returns:

  • (Hash{Integer=>Entry})

    All input column dictionary entries.



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

def ins
  @ins
end

#outsHash{Integer=>Entry}

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns All output column dictionary entries.

Returns:

  • (Hash{Integer=>Entry})

    All output column dictionary entries.



29
30
31
# File 'lib/csv_decision/columns.rb', line 29

def outs
  @outs
end