Method: Inspec::Resources::SecurityPolicy#method_missing

Defined in:
lib/resources/security_policy.rb

#method_missing(name) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/resources/security_policy.rb', line 38

def method_missing(name)
  params = read_params
  return nil if params.nil?

  # deep search for hash key
  params.extend Hashie::Extensions::DeepFind
  res = params.deep_find(name.to_s)
  res
end