From fccfe5a1d5d2053be257d245c012b6846a52bdd3 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Wed, 10 Apr 2013 17:48:46 +0200 Subject: [PATCH] perfdata::base#to_sym: use to_sym of class. --- lib/nsca/check.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nsca/check.rb b/lib/nsca/check.rb index 2326d9d..603b814 100644 --- a/lib/nsca/check.rb +++ b/lib/nsca/check.rb @@ -44,7 +44,7 @@ module NSCA def max() self.class.max end def to_a() [label, value, unit, warn, crit, min, max] end def to_s() "#{label}=#{value}#{unit},#{warn},#{crit},#{min},#{max}" end - def to_sym() self.class.label.to_sym end + def to_sym() self.class.to_sym end def to_h {label: @label, value: @value, unit: @unit, warn: @warn, crit: @crit, min: @min, max: @max}