Method: Inspec::Resources::CsvConfig#value
- Defined in:
- lib/resources/csv.rb
#value(key) ⇒ Object
override the value method from JsonConfig The format of the CSV hash as created by #parse is very different than what the YAML, JSON, and INI resources create, so using the #value method from JsonConfig (which uses ObjectTraverser.extract_value) doesn’t make sense here.
46 47 48 |
# File 'lib/resources/csv.rb', line 46 def value(key) @params.map { |x| x[key.first.to_s] }.compact end |