Module: CSVDecision::Input Private
- Defined in:
- lib/csv_decision/input.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Parse the input hash.
Class Method Summary collapse
Class Method Details
.parse(table:, input:, symbolize_keys:) ⇒ Hash{Symbol=>Object}
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.
13 14 15 16 17 18 19 20 |
# File 'lib/csv_decision/input.rb', line 13 def self.parse(table:, input:, symbolize_keys:) validate(input) parsed_input = parse_input(table: table, input: symbolize_keys ? input.symbolize_keys : input) parsed_input[:key] = parse_key(table: table, hash: parsed_input[:hash]) if table.index parsed_input end |