perfdata::base#to_sym: use to_sym of class.
This commit is contained in:
parent
13172b5cbe
commit
fccfe5a1d5
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue