Class: Inspec::RunData::Profile::Support
- Inherits:
-
Struct
- Object
- Struct
- Inspec::RunData::Profile::Support
- Includes:
- HashLikeStruct
- Defined in:
- lib/inspec/run_data/profile.rb
Instance Attribute Summary collapse
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#platform_family ⇒ Object
Returns the value of attribute platform_family.
-
#platform_name ⇒ Object
Returns the value of attribute platform_name.
-
#release ⇒ Object
Returns the value of attribute release.
Instance Method Summary collapse
-
#initialize(raw_sup_data) ⇒ Support
constructor
A new instance of Support.
Methods included from HashLikeStruct
Constructor Details
#initialize(raw_sup_data) ⇒ Support
Returns a new instance of Support.
66 67 68 69 70 |
# File 'lib/inspec/run_data/profile.rb', line 66 def initialize(raw_sup_data) %i{release platform}.each { |f| self[f] = raw_sup_data[f] } self.platform_family = raw_sup_data[:"platform-family"] self.platform_name = raw_sup_data[:"platform-name"] end |
Instance Attribute Details
#platform ⇒ Object
Returns the value of attribute platform
61 62 63 |
# File 'lib/inspec/run_data/profile.rb', line 61 def platform @platform end |
#platform_family ⇒ Object
Returns the value of attribute platform_family
61 62 63 |
# File 'lib/inspec/run_data/profile.rb', line 61 def platform_family @platform_family end |
#platform_name ⇒ Object
Returns the value of attribute platform_name
61 62 63 |
# File 'lib/inspec/run_data/profile.rb', line 61 def platform_name @platform_name end |
#release ⇒ Object
Returns the value of attribute release
61 62 63 |
# File 'lib/inspec/run_data/profile.rb', line 61 def release @release end |