Class: Sr71::Service
- Inherits:
-
Object
- Object
- Sr71::Service
- Defined in:
- lib/sr71/service.rb
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Service
constructor
A new instance of Service.
- #needs_check? ⇒ Boolean
- #start_check ⇒ Object
Constructor Details
#initialize(attrs = {}) ⇒ Service
Returns a new instance of Service.
3 4 5 6 7 |
# File 'lib/sr71/service.rb', line 3 def initialize(attrs = {}) @url = attrs["url"] @interval = attrs["interval"] @last_check = 0 end |