Class: OpenHAB::Core::Items::Semantics::Provider

Inherits:
Provider show all
Defined in:
lib/openhab/core/items/semantics/provider.rb

Overview

Provides SemanticTags created in Ruby to openHAB

Class Method Summary collapse

Methods inherited from Provider

#[], #all, current, #inspect

Methods included from Enumerable

#all_groups, #all_members, #command, #command!, #decrease, #down, #equipments, #fast_forward, #groups, #increase, #locations, #member_of, #members, #move, #next, #not_member_of, #not_tagged, #off, #on, #pause, #play, #points, #previous, #refresh, #rewind, #stop, #tagged, #toggle, #up, #update, #update!

Class Method Details

.registryorg.openhab.core.semantics.SemanticTagRegistry?

The SemanticTag registry

Returns:

Since:

  • openHAB 4.0



24
25
26
27
28
29
# File 'lib/openhab/core/items/semantics/provider.rb', line 24

def registry
  unless instance_variable_defined?(:@registry)
    @registry = OSGi.service("org.openhab.core.semantics.SemanticTagRegistry")
  end
  @registry
end