Module: OpenHAB::Core::Sitemaps::Widget

Included in:
LinkableWidget
Defined in:
lib/openhab/core/sitemaps/widget.rb

Overview

Since:

  • openHAB 5.2.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#iconString? (readonly)

Returns:

  • (String, nil)


# File 'lib/openhab/core/sitemaps/widget.rb', line 17

#itemString? (readonly)

Returns:

  • (String, nil)


# File 'lib/openhab/core/sitemaps/widget.rb', line 11

#labelString? (readonly)

Returns:

  • (String, nil)


# File 'lib/openhab/core/sitemaps/widget.rb', line 14

#widget_typeString (readonly)

Returns:

  • (String)


# File 'lib/openhab/core/sitemaps/widget.rb', line 20

Instance Method Details

#to_sString Also known as: inspect

Returns:

  • (String)

Since:

  • openHAB 5.2.0



24
25
26
27
28
29
30
# File 'lib/openhab/core/sitemaps/widget.rb', line 24

def to_s
  r = "#<OpenHAB::Core::Sitemaps::#{widget_type}"
  r += " #{label.inspect}" if label
  r += " item=#{item}" if item
  r += inspect_details.to_s
  "#{r}>"
end