check: accessor return_code, status, timestamp

This commit is contained in:
Denis Knauf 2013-04-09 16:41:56 +02:00
parent 9f84e5f38d
commit 96a58c12dd

View file

@ -63,7 +63,9 @@ module NSCA
module Check module Check
class Base class Base
attr_reader :perfdatas, :return_code, :status, :timestamp attr_accessor :return_code, :status, :timestamp
attr_reader :perfdatas
def initialize return_code = nil, status = nil, perfdatas = nil def initialize return_code = nil, status = nil, perfdatas = nil
@perfdatas = {} @perfdatas = {}
init return_code, status, perfdatas, timestamp || Time.now init return_code, status, perfdatas, timestamp || Time.now