class

KNX::GroupAddress2Level

Inherits KNX::Address < BinData < Reference < Object

Constants

AFTER_DESERIALIZE = [] of Nil
BEFORE_SERIALIZE = [] of Nil
ENDIAN = ["big"]
PARTS = [{type: "bitfield", name: 3, cls: KNX::GroupAddress2Level, onlyif: nil, verify: nil, endian: IO::ByteFormat::BigEndian}] of Nil
REMAINING = [] of Nil

Constructors

parse(address : String) : self
Source

Class methods

bit_fields
Source
parse_friendly(string)
Source

Instance methods

__format__

A group or bit_field captures the endianness at its declaration point, so declaring endian after one would silently leave it system-endian. Fail loudly.

Source
_reserved_
_reserved_=(_reserved_ : UInt8)
main_group
main_group=(main_group : UInt8)
sub_group
sub_group=(sub_group : UInt16)
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