class Switch

Included Modules

Defined in:

models/switch.cr:1
models/switch.cr:3

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : JSON::PullParser) #

Instance Method Detail

def active : Bool #

[View source]
def active=(active : Bool) #

[View source]
def created_at : Time | Nil #

def created_at! : Time #

def created_at=(created_at : Time | Nil) #

def description : String | Nil #

[View source]
def description! : String #

[View source]
def description=(description : String | Nil) #

[View source]
def device : Device | Nil #

[View source]
def device! : Device #

[View source]
def device=(parent : Device) #

[View source]
def device_id : Int64 | Nil #

def device_id! : Int64 #

def device_id=(device_id : Int64 | Nil) #

def device_topic_channel : String #

[View source]
def device_topic_channel=(device_topic_channel : String) #

[View source]
def icon : String | Nil #

[View source]
def icon! : String #

[View source]
def icon=(icon : String | Nil) #

[View source]
def id : Int64 | Nil #

[View source]
def id! : Int64 #

[View source]
def id=(id : Int64 | Nil) #

[View source]
def invert_state : Bool #

[View source]
def invert_state=(invert_state : Bool) #

[View source]
def mode : String #

[View source]
def mode=(mode : String) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def pin : Int32 #

[View source]
def pin=(pin : Int32) #

[View source]
def pin_alias : String #

[View source]
def pin_alias=(pin_alias : String) #

[View source]
def state : Int32 #

[View source]
def state=(state : Int32) #

[View source]
def updated_at : Time | Nil #

def updated_at! : Time #

def updated_at=(updated_at : Time | Nil) #