Class: Inspec::RunData::Control::Ref

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashLikeStruct

#key?, #keys, #non_nil?

Constructor Details

#initialize(raw_ref_data) ⇒ Ref

Returns a new instance of Ref.



42
43
44
# File 'lib/inspec/run_data/control.rb', line 42

def initialize(raw_ref_data)
  %i{url ref}.each { |f| self[f] = raw_ref_data[f] }
end

Instance Attribute Details

#refObject

Returns the value of attribute ref

Returns:

  • (Object)

    the current value of ref



38
39
40
# File 'lib/inspec/run_data/control.rb', line 38

def ref
  @ref
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



38
39
40
# File 'lib/inspec/run_data/control.rb', line 38

def url
  @url
end