Class: Inspec::RunData::Platform
- Inherits:
-
Struct
- Object
- Struct
- Inspec::RunData::Platform
- Includes:
- HashLikeStruct
- Defined in:
- lib/inspec/run_data.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#release ⇒ Object
Returns the value of attribute release.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(raw_plat_data) ⇒ Platform
constructor
A new instance of Platform.
Methods included from HashLikeStruct
Constructor Details
#initialize(raw_plat_data) ⇒ Platform
Returns a new instance of Platform.
63 64 65 |
# File 'lib/inspec/run_data.rb', line 63 def initialize(raw_plat_data) %i{name release target}.each { |f| self[f] = raw_plat_data[f] || "" } end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
59 60 61 |
# File 'lib/inspec/run_data.rb', line 59 def name @name end |
#release ⇒ Object
Returns the value of attribute release
59 60 61 |
# File 'lib/inspec/run_data.rb', line 59 def release @release end |
#target ⇒ Object
Returns the value of attribute target
59 60 61 |
# File 'lib/inspec/run_data.rb', line 59 def target @target end |