Class: Inspec::RunData::Profile::Input::Options
- Inherits:
-
Struct
- Object
- Struct
- Inspec::RunData::Profile::Input::Options
- Includes:
- HashLikeStruct
- Defined in:
- lib/inspec/run_data/profile.rb
Instance Attribute Summary collapse
-
#required ⇒ Object
Returns the value of attribute required.
-
#sensitive ⇒ Object
Returns the value of attribute sensitive.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(raw_opts_data) ⇒ Options
constructor
A new instance of Options.
Methods included from HashLikeStruct
Constructor Details
#initialize(raw_opts_data) ⇒ Options
Returns a new instance of Options.
101 102 103 |
# File 'lib/inspec/run_data/profile.rb', line 101 def initialize(raw_opts_data) %i{value type required sensitive}.each { |f| self[f] = raw_opts_data[f] } end |
Instance Attribute Details
#required ⇒ Object
Returns the value of attribute required
93 94 95 |
# File 'lib/inspec/run_data/profile.rb', line 93 def required @required end |
#sensitive ⇒ Object
Returns the value of attribute sensitive
93 94 95 |
# File 'lib/inspec/run_data/profile.rb', line 93 def sensitive @sensitive end |
#type ⇒ Object
Returns the value of attribute type
93 94 95 |
# File 'lib/inspec/run_data/profile.rb', line 93 def type @type end |
#value ⇒ Object
Returns the value of attribute value
93 94 95 |
# File 'lib/inspec/run_data/profile.rb', line 93 def value @value end |