Class: MCollective::Aggregate::Result::NumericResult
- Defined in:
- lib/mcollective/aggregate/result/numeric_result.rb
Instance Attribute Summary
Attributes inherited from Base
#action, #aggregate_format, #result
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from MCollective::Aggregate::Result::Base
Instance Method Details
#to_s ⇒ Object
5 6 7 8 9 |
# File 'lib/mcollective/aggregate/result/numeric_result.rb', line 5 def to_s return "" if @result[:value].nil? return @aggregate_format % @result[:value] end |