Method: Inspec::Resources::JsonConfig#value

Defined in:
lib/resources/json.rb

#value(key) ⇒ Object



58
59
60
61
62
# File 'lib/resources/json.rb', line 58

def value(key)
  # uses ObjectTraverser.extract_value to walk the hash looking for the key,
  # which may be an Array of keys for a nested Hash.
  extract_value(key, params)
end