Class: Inspec::RunData::Profile::Input::Options

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_opts_data) ⇒ Options

Returns a new instance of Options.



103
104
105
# File 'lib/inspec/run_data/profile.rb', line 103

def initialize(raw_opts_data)
  %i{value type required sensitive}.each { |f| self[f] = raw_opts_data[f] }
end

Instance Attribute Details

#requiredObject

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



95
96
97
# File 'lib/inspec/run_data/profile.rb', line 95

def required
  @required
end

#sensitiveObject

Returns the value of attribute sensitive

Returns:

  • (Object)

    the current value of sensitive



95
96
97
# File 'lib/inspec/run_data/profile.rb', line 95

def sensitive
  @sensitive
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



95
96
97
# File 'lib/inspec/run_data/profile.rb', line 95

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



95
96
97
# File 'lib/inspec/run_data/profile.rb', line 95

def value
  @value
end