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.



101
102
103
# File 'lib/inspec/run_data/profile.rb', line 101

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



93
94
95
# File 'lib/inspec/run_data/profile.rb', line 93

def required
  @required
end

#sensitiveObject

Returns the value of attribute sensitive

Returns:

  • (Object)

    the current value of sensitive



93
94
95
# File 'lib/inspec/run_data/profile.rb', line 93

def sensitive
  @sensitive
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



93
94
95
# File 'lib/inspec/run_data/profile.rb', line 93

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



93
94
95
# File 'lib/inspec/run_data/profile.rb', line 93

def value
  @value
end