Class: Inspec::RunData::Profile::Group
- Inherits:
-
Struct
- Object
- Struct
- Inspec::RunData::Profile::Group
- Includes:
- HashLikeStruct
- Defined in:
- lib/inspec/run_data/profile.rb
Instance Attribute Summary collapse
-
#controls ⇒ Object
Returns the value of attribute controls.
-
#id ⇒ Object
Returns the value of attribute id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(raw_grp_data) ⇒ Group
constructor
A new instance of Group.
Methods included from HashLikeStruct
Constructor Details
#initialize(raw_grp_data) ⇒ Group
Returns a new instance of Group.
77 78 79 80 |
# File 'lib/inspec/run_data/profile.rb', line 77 def initialize(raw_grp_data) %i{title id}.each { |f| self[f] = raw_grp_data[f] } [:controls].each { |f| self[f] = raw_grp_data[f] || [] } end |
Instance Attribute Details
#controls ⇒ Object
Returns the value of attribute controls
73 74 75 |
# File 'lib/inspec/run_data/profile.rb', line 73 def controls @controls end |
#id ⇒ Object
Returns the value of attribute id
73 74 75 |
# File 'lib/inspec/run_data/profile.rb', line 73 def id @id end |
#title ⇒ Object
Returns the value of attribute title
73 74 75 |
# File 'lib/inspec/run_data/profile.rb', line 73 def title @title end |