class ShellyplugExporter::PlugConfig

Overview

Represents the configuration for a single Shelly plug device.

Defined in:

shellyplug_exporter/plug_config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, host : String, port : Int32, auth_username : String | Nil = nil, auth_password : String | Nil = nil, last_request_succeeded : Bool | Nil = nil) #

Instance Method Detail

def auth_password : String | Nil #

def auth_password=(auth_password : String | Nil) #

def auth_username : String | Nil #

def auth_username=(auth_username : String | Nil) #

def host : String #

def host=(host : String) #

def last_request_succeeded : Bool | Nil #

def last_request_succeeded=(last_request_succeeded : Bool | Nil) #

def name : String #

def name=(name : String) #

def port : Int32 #

def port=(port : Int32) #