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
SourceInstance methods
active
Sourceactive=(active : Bool)
Sourceactive_switches
Sourceapi_key
Sourceapi_key!
Sourceapi_key=(child)
Sourcecreated_at
created_at!
created_at=(created_at : Time | Nil)
id
Sourceid!
Sourceid=(id : Int64 | Nil)
Sourcemac
Sourcemac=(mac : String)
Sourcename
Sourcename=(name : String)
Sourcesend_auth_message
Sourcesend_restart_message
Sourcesend_setup_message
Sourceswitches
Sourcetopic_channel
Sourcetopic_channel=(topic_channel : String)
Sourceupdated_at
updated_at!
updated_at=(updated_at : Time | Nil)
user
Sourceuser!
Sourceuser_id
user_id!
user_id=(user_id : Int64 | Nil)
uuid
Sourceuuid=(uuid : String)
Source