Class: Fritzbox::Smarthome::Lightbulb
- Includes:
- Properties::SimpleOnOff
- Defined in:
- lib/fritzbox/smarthome/lightbulb.rb
Constant Summary
Constants inherited from Actor
Constants inherited from Resource
Instance Attribute Summary
Attributes inherited from Actor
#ain, #group_members, #id, #manufacturer, #name, #present, #type
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
10 11 12 |
# File 'lib/fritzbox/smarthome/lightbulb.rb', line 10 def match?(data) data.fetch('@productname', '') =~ /FRITZ!DECT 5\d{2}/i end |