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.



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

#platformObject

Returns the value of attribute platform

Returns:

  • (Object)

    the current value of platform



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

def platform
  @platform
end

#platform_familyObject

Returns the value of attribute platform_family

Returns:

  • (Object)

    the current value of platform_family



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

def platform_family
  @platform_family
end

#platform_nameObject

Returns the value of attribute platform_name

Returns:

  • (Object)

    the current value of platform_name



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

def platform_name
  @platform_name
end

#releaseObject

Returns the value of attribute release

Returns:

  • (Object)

    the current value of release



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

def release
  @release
end