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.



48
49
50
# File 'lib/inspec/run_data/control.rb', line 48

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



44
45
46
# File 'lib/inspec/run_data/control.rb', line 44

def ref
  @ref
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



44
45
46
# File 'lib/inspec/run_data/control.rb', line 44

def url
  @url
end