class Switch
- Switch
- Granite::Base
- Reference
- Object
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
models/switch.cr:1models/switch.cr:3
Constructors
Instance Method Summary
- #active : Bool
- #active=(active : Bool)
- #created_at : Time | Nil
- #created_at! : Time
- #created_at=(created_at : Time | Nil)
- #description : String | Nil
- #description! : String
- #description=(description : String | Nil)
- #device : Device | Nil
- #device! : Device
- #device=(parent : Device)
- #device_id : Int64 | Nil
- #device_id! : Int64
- #device_id=(device_id : Int64 | Nil)
- #device_topic_channel : String
- #device_topic_channel=(device_topic_channel : String)
- #icon : String | Nil
- #icon! : String
- #icon=(icon : String | Nil)
- #id : Int64 | Nil
- #id! : Int64
- #id=(id : Int64 | Nil)
- #invert_state : Bool
- #invert_state=(invert_state : Bool)
- #mode : String
- #mode=(mode : String)
- #name : String
- #name=(name : String)
- #pin : Int32
- #pin=(pin : Int32)
- #pin_alias : String
- #pin_alias=(pin_alias : String)
- #state : Int32
- #state=(state : Int32)
- #updated_at : Time | Nil
- #updated_at! : Time
- #updated_at=(updated_at : Time | Nil)