Class: Inspec::RunData::Statistics::Controls
- Inherits:
-
Struct
- Object
- Struct
- Inspec::RunData::Statistics::Controls
- Includes:
- HashLikeStruct
- Defined in:
- lib/inspec/run_data/statistics.rb,
lib/inspec/run_data/statistics.rb
Defined Under Namespace
Classes: Total
Instance Attribute Summary collapse
-
#failed ⇒ Object
Returns the value of attribute failed.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#skipped ⇒ Object
Returns the value of attribute skipped.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(raw_stat_ctl_data) ⇒ Controls
constructor
A new instance of Controls.
Methods included from HashLikeStruct
Constructor Details
#initialize(raw_stat_ctl_data) ⇒ Controls
Returns a new instance of Controls.
22 23 24 25 26 27 |
# File 'lib/inspec/run_data/statistics.rb', line 22 def initialize(raw_stat_ctl_data) self.total = raw_stat_ctl_data[:total] self.passed = Inspec::RunData::Statistics::Controls::Total.new(raw_stat_ctl_data[:passed][:total]) self.skipped = Inspec::RunData::Statistics::Controls::Total.new(raw_stat_ctl_data[:skipped][:total]) self.failed = Inspec::RunData::Statistics::Controls::Total.new(raw_stat_ctl_data[:failed][:total]) end |
Instance Attribute Details
#failed ⇒ Object
Returns the value of attribute failed
15 16 17 |
# File 'lib/inspec/run_data/statistics.rb', line 15 def failed @failed end |
#passed ⇒ Object
Returns the value of attribute passed
15 16 17 |
# File 'lib/inspec/run_data/statistics.rb', line 15 def passed @passed end |
#skipped ⇒ Object
Returns the value of attribute skipped
15 16 17 |
# File 'lib/inspec/run_data/statistics.rb', line 15 def skipped @skipped end |
#total ⇒ Object
Returns the value of attribute total
15 16 17 |
# File 'lib/inspec/run_data/statistics.rb', line 15 def total @total end |