struct

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

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new(id : String | UInt32 | Nil = nil, channel : UInt32 | Nil = nil, component : Nil | String = nil, join : UInt32 | Nil = nil, append : Nil | String = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

append(append : String | Nil)
Source
append
Source
append=(append : String | Nil)
Source
channel
Source
component
Source
id

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

Source
join
Source
join_with(area : Area) : Area
Source
to_s

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.

Source