Class: Inspec::Plugin::V2::Activator
- Defined in:
- lib/inspec/plugin/v2/activator.rb
Instance Attribute Summary collapse
-
#activation_proc ⇒ Object
Returns the value of attribute activation_proc.
-
#activator_name ⇒ Object
Returns the value of attribute activator_name.
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#implementation_class ⇒ Object
Returns the value of attribute implementation_class.
-
#plugin_name ⇒ Object
Returns the value of attribute plugin_name.
-
#plugin_type ⇒ Object
Returns the value of attribute plugin_type.
Instance Method Summary collapse
- #activated?(new_value = nil) ⇒ Boolean
-
#initialize ⇒ Activator
constructor
A new instance of Activator.
Methods inherited from Struct
Constructor Details
#initialize ⇒ Activator
Returns a new instance of Activator.
11 12 13 14 |
# File 'lib/inspec/plugin/v2/activator.rb', line 11 def initialize(*) super self[:'activated?'] = false end |
Instance Attribute Details
#activation_proc ⇒ Object
Returns the value of attribute activation_proc
2 3 4 |
# File 'lib/inspec/plugin/v2/activator.rb', line 2 def activation_proc @activation_proc end |
#activator_name ⇒ Object
Returns the value of attribute activator_name
2 3 4 |
# File 'lib/inspec/plugin/v2/activator.rb', line 2 def activator_name @activator_name end |
#exception ⇒ Object
Returns the value of attribute exception
2 3 4 |
# File 'lib/inspec/plugin/v2/activator.rb', line 2 def exception @exception end |
#implementation_class ⇒ Object
Returns the value of attribute implementation_class
2 3 4 |
# File 'lib/inspec/plugin/v2/activator.rb', line 2 def implementation_class @implementation_class end |
#plugin_name ⇒ Object
Returns the value of attribute plugin_name
2 3 4 |
# File 'lib/inspec/plugin/v2/activator.rb', line 2 def plugin_name @plugin_name end |
#plugin_type ⇒ Object
Returns the value of attribute plugin_type
2 3 4 |
# File 'lib/inspec/plugin/v2/activator.rb', line 2 def plugin_type @plugin_type end |
Instance Method Details
#activated?(new_value = nil) ⇒ Boolean
16 17 18 19 |
# File 'lib/inspec/plugin/v2/activator.rb', line 16 def activated?(new_value = nil) return self[:'activated?'] if new_value.nil? self[:'activated?'] = new_value end |