class Device
- Device
- Granite::Base
- Reference
- Object
Included Modules
- Helpers::WebSocket::Handler
- JSON::Serializable
- Subscriber::Device
- YAML::Serializable
Defined in:
models/device.cr:4models/device.cr:9
Constructors
Class Method Summary
Instance Method Summary
- #active : Bool
- #active=(active : Bool)
- #active_switches
- #api_key : ApiKey | Nil
- #api_key! : ApiKey
- #api_key=(child)
- #created_at : Time | Nil
- #created_at! : Time
- #created_at=(created_at : Time | Nil)
- #id : Int64 | Nil
- #id! : Int64
- #id=(id : Int64 | Nil)
- #mac : String
- #mac=(mac : String)
- #name : String
- #name=(name : String)
- #send_auth_message
- #send_restart_message
- #send_setup_message
- #switches
- #topic_channel : String
- #topic_channel=(topic_channel : String)
- #updated_at : Time | Nil
- #updated_at! : Time
- #updated_at=(updated_at : Time | Nil)
- #user : User | Nil
- #user! : User
- #user=(parent : User)
- #user_id : Int64 | Nil
- #user_id! : Int64
- #user_id=(user_id : Int64 | Nil)
- #uuid : String
- #uuid=(uuid : String)