Class: OpenHAB::DSL::Sitemaps::VideoBuilder

Inherits:
WidgetBuilder show all
Defined in:
lib/openhab/dsl/sitemaps/builder.rb

Overview

Builds a Video element

Constant Summary collapse

VALID_ENCODINGS =

Valid #encoding values

%i[mjpeg hls].freeze

Instance Attribute Summary collapse

Attributes inherited from WidgetBuilder

#icon, #icon_colors, #item, #label, #label_colors, #static_icon, #value_colors, #visibilities

Method Summary

Methods inherited from WidgetBuilder

#icon_color, #label_color, #value_color, #visibility

Methods included from Core::EntityLookup

#items, #method_missing, #things

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OpenHAB::Core::EntityLookup

Instance Attribute Details

#encoding:mjpeg, ...

Returns:

  • (:mjpeg, :hls, nil)


492
493
494
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 492

def encoding
  @encoding
end

#urlString?

Returns:

  • (String, nil)


490
491
492
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 490

def url
  @url
end