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



89
90
91
92
# File 'lib/inspec/run_data/profile.rb', line 89

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



85
86
87
# File 'lib/inspec/run_data/profile.rb', line 85

def name
  @name
end

#optionsObject

Returns the value of attribute options



85
86
87
# File 'lib/inspec/run_data/profile.rb', line 85

def options
  @options
end