Class: Inspec::Resources::Opa
- Inherits:
-
JsonConfig
- Object
- JsonConfig
- Inspec::Resources::Opa
- Defined in:
- lib/inspec/resources/opa.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Attributes inherited from JsonConfig
Instance Method Summary collapse
-
#initialize(content) ⇒ Opa
constructor
A new instance of Opa.
Methods inherited from JsonConfig
#method_missing, #to_s, #value
Methods included from FileReader
Methods included from ObjectTraverser
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
#result ⇒ Object (readonly)
Returns the value of attribute result.
9 10 11 |
# File 'lib/inspec/resources/opa.rb', line 9 def result @result end |