class

Device

Inherits Subscriber::Device < Helpers::WebSocket::Handler < YAML::Serializable < JSON::Serializable < Granite::Base < Granite::ConnectionManagement < Granite::Querying < Granite::Select < Granite::Migrator < Granite::ValidationHelpers < Granite::Validators < Granite::Transactions < Granite::Tables < Granite::Columns < Granite::Callbacks < Granite::Associations < Reference < Object

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Class methods

registered_and_active?(mac : String, api_key : String) : Bool
Source

Instance methods

active
Source
active=(active : Bool)
Source
active_switches
Source
api_key
Source
api_key!
Source
api_key=(child)
Source
created_at
created_at!
created_at=(created_at : Time | Nil)
id=(id : Int64 | Nil)
Source
mac=(mac : String)
Source
name
Source
name=(name : String)
Source
send_auth_message
Source
send_restart_message
Source
send_setup_message
Source
switches
Source
topic_channel
Source
topic_channel=(topic_channel : String)
Source
updated_at
updated_at!
updated_at=(updated_at : Time | Nil)
user
Source
user!
Source
user=(parent : User)
Source
user_id
user_id!
user_id=(user_id : Int64 | Nil)
uuid
Source
uuid=(uuid : String)
Source