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) ⇒ Watchdog
constructor
A new instance of Watchdog.
- #reboot_modem ⇒ Object
Constructor Details
#initialize(config) ⇒ Watchdog
Returns a new instance of Watchdog.
7 8 9 10 11 12 13 14 15 |
# File 'lib/smartware/interfaces/watchdog.rb', line 7 def initialize(config) super update_status do @status[:error] = nil @status[:model] = @device.model @status[:version] = @device.version end end |
Instance Method Details
#reboot_modem ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/smartware/interfaces/watchdog.rb', line 17 def reboot_modem @device.reboot_modem update_status do @status[:error] = @device.error end end |