Class: Inspec::Resources::Opa

Inherits:
JsonConfig show all
Defined in:
lib/inspec/resources/opa.rb

Direct Known Subclasses

OpaApi, OpaCli

Instance Attribute Summary collapse

Attributes inherited from JsonConfig

#params, #raw_content

Instance Method Summary collapse

Methods inherited from JsonConfig

#method_missing, #to_s, #value

Methods included from FileReader

#read_file_content

Methods included from ObjectTraverser

#extract_value

Constructor Details

#initialize(content) ⇒ Opa

Returns a new instance of Opa.



10
11
12
13
# File 'lib/inspec/resources/opa.rb', line 10

def initialize(content)
  @content = content
  super({ content: @content })
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Inspec::Resources::JsonConfig

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



9
10
11
# File 'lib/inspec/resources/opa.rb', line 9

def result
  @result
end