Class: Smartware::Interface::Watchdog
- Inherits:
-
Smartware::Interface
- Object
- Smartware::Interface
- Smartware::Interface::Watchdog
- Defined in:
- lib/smartware/interfaces/watchdog.rb
Constant Summary collapse
- WATCHDOG_NOT_AVAILBLE =
1
Instance Method Summary collapse
-
#initialize(config, service) ⇒ Watchdog
constructor
A new instance of Watchdog.
- #reboot_modem ⇒ Object
Constructor Details
#initialize(config, service) ⇒ Watchdog
Returns a new instance of Watchdog.
7 8 9 10 11 12 13 |
# File 'lib/smartware/interfaces/watchdog.rb', line 7 def initialize(config, service) super update_status :error, nil update_status :model, @device.model update_status :version, @device.version end |
Instance Method Details
#reboot_modem ⇒ Object
15 16 17 18 19 |
# File 'lib/smartware/interfaces/watchdog.rb', line 15 def reboot_modem @device.reboot_modem update_status :error, @device.error end |