Class: CSVDecision::Scan::InputHashes Private

Inherits:
Object
  • Object
show all
Defined in:
lib/csv_decision/scan.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.

Derive the parsed input hash, using a cache for speed.

Instance Method Summary collapse

Constructor Details

#initializeInputHashes

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 InputHashes.



85
86
87
# File 'lib/csv_decision/scan.rb', line 85

def initialize
  @input_hashes = {}
end

Instance Method Details

#data(decision:, path:, input:) ⇒ 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.

Returns Parsed input hash.



92
93
94
95
96
97
98
# File 'lib/csv_decision/scan.rb', line 92

def data(decision:, path:, input:)
  result = input(decision: decision, path: path, input: input)

  decision.input(result) unless result == {}

  result
end