Closed carpodaster closed 2 years ago
So far, only switching them on and off support
Future refactoring could extract the #toggle! and #active? into a mixin like OnOffSwitchable (terrible name, but you get the idea :wink: ) to provide a uniform interface for all things on-off'able.
#toggle!
#active?
OnOffSwitchable
Pushed a new release:
https://rubygems.org/gems/fritzbox-smarthome/versions/0.4.0
So far, only switching them on and off support
Future refactoring could extract the
#toggle!
and#active?
into a mixin likeOnOffSwitchable
(terrible name, but you get the idea :wink: ) to provide a uniform interface for all things on-off'able.