check: accessor return_code, status, timestamp

master
Denis Knauf 2013-04-09 16:41:56 +02:00
parent 9f84e5f38d
commit 96a58c12dd
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@ module NSCA
module Check
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
@perfdatas = {}
init return_code, status, perfdatas, timestamp || Time.now