Class: Inspec::RunData::Statistics
- Inherits:
-
Struct
- Object
- Struct
- Inspec::RunData::Statistics
- Includes:
- HashLikeStruct
- Defined in:
- lib/inspec/run_data/statistics.rb,
lib/inspec/run_data/statistics.rb
Overview
:controls=>{:total=>3, :passed=>{:total=>3, :skipped=>:total=>0, :failed=>:total=>0}}
Defined Under Namespace
Classes: Controls
Instance Attribute Summary collapse
-
#controls ⇒ Object
Returns the value of attribute controls.
-
#duration ⇒ Object
Returns the value of attribute duration.
Instance Method Summary collapse
-
#initialize(raw_stat_data) ⇒ Statistics
constructor
A new instance of Statistics.
Methods included from HashLikeStruct
Constructor Details
#initialize(raw_stat_data) ⇒ Statistics
Returns a new instance of Statistics.
9 10 11 12 |
# File 'lib/inspec/run_data/statistics.rb', line 9 def initialize(raw_stat_data) self.controls = Inspec::RunData::Statistics::Controls.new(raw_stat_data[:controls]) self.duration = raw_stat_data[:duration] end |
Instance Attribute Details
#controls ⇒ Object
Returns the value of attribute controls
4 5 6 |
# File 'lib/inspec/run_data/statistics.rb', line 4 def controls @controls end |
#duration ⇒ Object
Returns the value of attribute duration
4 5 6 |
# File 'lib/inspec/run_data/statistics.rb', line 4 def duration @duration end |