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

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

Defined Under Namespace

Classes: Options

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashLikeStruct

#key?, #keys, #non_nil?

Constructor Details

#initialize(raw_input_data) ⇒ Input

Returns a new instance of Input.



87
88
89
90
# File 'lib/inspec/run_data/profile.rb', line 87

def initialize(raw_input_data)
  self.name = raw_input_data[:name]
  self.options = Inspec::RunData::Profile::Input::Options.new(raw_input_data[:options])
end

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



83
84
85
# File 'lib/inspec/run_data/profile.rb', line 83

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



83
84
85
# File 'lib/inspec/run_data/profile.rb', line 83

def options
  @options
end