Class: Fritzbox::Smarthome::Lightbulb
- Includes:
- Properties::SimpleOnOff
- Defined in:
- lib/fritzbox/smarthome/lightbulb.rb
Constant Summary
Constants inherited from Actor
Constants inherited from Resource
Class Method Summary collapse
Methods included from Properties::SimpleOnOff
Methods inherited from Actor
all, #assign_from_api, find_by!, new_from_api, #reload
Methods inherited from Resource
Class Method Details
.match?(data) ⇒ Boolean
7 8 9 |
# File 'lib/fritzbox/smarthome/lightbulb.rb', line 7 def match?(data) data.fetch('@productname', '') =~ /FRITZ!DECT 5\d{2}/i end |