struct PlaceOS::Driver::Interface::Lighting::Area

Included Modules

Extended Modules

Defined in:

placeos-driver/interface/lighting.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(id : String | UInt32 | Nil = nil, channel : UInt32 | Nil = nil, component : Nil | String = nil, join : UInt32 | Nil = nil, append : Nil | String = nil) #

[View source]

Instance Method Detail

def append(append : String | Nil) #

[View source]
def append : String | Nil #

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

[View source]
def channel : UInt32 | Nil #

[View source]
def component : String | Nil #

[View source]
def id : UInt32 | String | Nil #

Newer fields can be added if these don't meet requirements for newer lighting systems


[View source]
def join : UInt32 | Nil #

[View source]
def join_with(area : Area) : Area #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]