Class: Wizrb::Power::Products::SmartPlug

Inherits:
Shared::Products::Device show all
Defined in:
lib/wizrb/power/products/smart_plug.rb

Constant Summary collapse

MODULE_NAME_IDENTIFIER =
"SOCKET"

Instance Attribute Summary

Attributes inherited from Shared::Products::Device

#ip, #port, #state

Instance Method Summary collapse

Methods inherited from Shared::Products::Device

#dispatch_event, #dispatch_events, #model_config, #module_name, #power_off, #power_on, #power_switch, #reboot, #refresh, #reset, #system_config, #user_config

Constructor Details

#initialize(ip:, port: 38_899) ⇒ SmartPlug

Returns a new instance of SmartPlug.



11
12
13
# File 'lib/wizrb/power/products/smart_plug.rb', line 11

def initialize(ip:, port: 38_899)
  super
end