Class: MCollective::Aggregate::Result::NumericResult

Inherits:
Base
  • Object
show all
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

#initialize, #result_type

Constructor Details

This class inherits a constructor from MCollective::Aggregate::Result::Base

Instance Method Details

#to_sObject



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