Sha256: 9acc2d5b0e6b3b4c0eb07c813013e9ba38f900f54f9746cbb343482db9950a41
Contents?: true
Size: 252 Bytes
Versions: 1
Compression:
Stored size: 252 Bytes
Contents
module Fritzbox module Smarthome class Lightbulb < Actor include Properties::SimpleOnOff class << self def match?(data) data.fetch('@productname', '') =~ /FRITZ!DECT 5\d{2}/i end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fritzbox-smarthome-0.8.0 | lib/fritzbox/smarthome/lightbulb.rb |