Class: Inspec::RunData::Control::Ref
- Inherits:
-
Struct
- Object
- Struct
- Inspec::RunData::Control::Ref
- Includes:
- HashLikeStruct
- Defined in:
- lib/inspec/run_data/control.rb
Instance Attribute Summary collapse
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(raw_ref_data) ⇒ Ref
constructor
A new instance of Ref.
Methods included from HashLikeStruct
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
#ref ⇒ Object
Returns the value of attribute ref
44 45 46 |
# File 'lib/inspec/run_data/control.rb', line 44 def ref @ref end |
#url ⇒ Object
Returns the value of attribute url
44 45 46 |
# File 'lib/inspec/run_data/control.rb', line 44 def url @url end |