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.
67 68 69 70 71 |
# File 'lib/inspec/run_data/profile.rb', line 67 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
62 63 64 |
# File 'lib/inspec/run_data/profile.rb', line 62 def platform @platform end |
#platform_family ⇒ Object
Returns the value of attribute platform_family
62 63 64 |
# File 'lib/inspec/run_data/profile.rb', line 62 def platform_family @platform_family end |
#platform_name ⇒ Object
Returns the value of attribute platform_name
62 63 64 |
# File 'lib/inspec/run_data/profile.rb', line 62 def platform_name @platform_name end |
#release ⇒ Object
Returns the value of attribute release
62 63 64 |
# File 'lib/inspec/run_data/profile.rb', line 62 def release @release end |