Class: Inspec::RunData::Profile::Support

Inherits:
Struct
  • Object
show all
Includes:
HashLikeStruct
Defined in:
lib/inspec/run_data/profile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashLikeStruct

#key?, #keys, #non_nil?

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

#platformObject

Returns the value of attribute platform

Returns:

  • (Object)

    the current value of platform



61
62
63
# File 'lib/inspec/run_data/profile.rb', line 61

def platform
  @platform
end

#platform_familyObject

Returns the value of attribute platform_family

Returns:

  • (Object)

    the current value of platform_family



61
62
63
# File 'lib/inspec/run_data/profile.rb', line 61

def platform_family
  @platform_family
end

#platform_nameObject

Returns the value of attribute platform_name

Returns:

  • (Object)

    the current value of platform_name



61
62
63
# File 'lib/inspec/run_data/profile.rb', line 61

def platform_name
  @platform_name
end

#releaseObject

Returns the value of attribute release

Returns:

  • (Object)

    the current value of release



61
62
63
# File 'lib/inspec/run_data/profile.rb', line 61

def release
  @release
end