check: accessor return_code, status, timestamp
This commit is contained in:
parent
9f84e5f38d
commit
96a58c12dd
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue