Class: Skywatch::Check
Instance Attribute Summary collapse
-
#interval ⇒ Object
readonly
Returns the value of attribute interval.
Attributes inherited from Script
Instance Method Summary collapse
-
#initialize(path) ⇒ Check
constructor
A new instance of Check.
Methods inherited from Script
[], #destroy, #disable, #enable, #enabled?
Constructor Details
#initialize(path) ⇒ Check
Returns a new instance of Check.
199 200 201 202 203 204 |
# File 'lib/skywatch/tool.rb', line 199 def initialize(path) interval, name = File.basename(path).split('.', 2) @path = path @name = name @interval = interval.to_i end |
Instance Attribute Details
#interval ⇒ Object (readonly)
Returns the value of attribute interval.
197 198 199 |
# File 'lib/skywatch/tool.rb', line 197 def interval @interval end |