Module: OpenHAB::Core::Items::Semantics::SemanticTag
- Defined in:
- lib/openhab/core/items/semantics/semantic_tag.rb
Overview
Instance Attribute Summary collapse
-
#description ⇒ String
readonly
The tag's full description.
-
#label ⇒ String
readonly
The tag's human readable label.
-
#name ⇒ String
readonly
The tag's simple name.
-
#parent_uid ⇒ String
readonly
The UID of the tag's parent.
-
#synonyms ⇒ java.util.List<String>
readonly
Allowed synonyms for the tag.
-
#uid ⇒ String
readonly
The tag's full UID, including ancestors.
Instance Method Summary collapse
- #inspect ⇒ String
-
#localized(locale) ⇒ SemanticTag
Returns a new SemanticTag localized to the specified locale.
- #to_s ⇒ String
Instance Attribute Details
#description ⇒ String (readonly)
The tag's full description.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 35
|
#label ⇒ String (readonly)
The tag's human readable label.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 29
|
#name ⇒ String (readonly)
The tag's simple name.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 23
|
#parent_uid ⇒ String (readonly)
The UID of the tag's parent.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 17
|
#synonyms ⇒ java.util.List<String> (readonly)
Allowed synonyms for the tag.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 41
|
#uid ⇒ String (readonly)
The tag's full UID, including ancestors.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 11
|
Instance Method Details
#inspect ⇒ String
85 86 87 88 89 90 91 |
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 85 def inspect parent = " (#{parent_uid})" unless parent_uid.empty? "#<OpenHAB::Core::Items::Semantics::#{name}#{parent} " \ "label=#{label.inspect} " \ "description=#{description.inspect} " \ "synonyms=#{synonyms.to_a.inspect}>" end |
#localized(locale) ⇒ SemanticTag
Returns a new SemanticTag localized to the specified locale.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 47
|
#to_s ⇒ String
94 95 96 |
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 94 def to_s name end |