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 38
|
#label ⇒ String (readonly)
The tag's human readable label.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 32
|
#name ⇒ String (readonly)
The tag's simple name.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 26
|
#parent_uid ⇒ String (readonly)
The UID of the tag's parent.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 20
|
#synonyms ⇒ java.util.List<String> (readonly)
Allowed synonyms for the tag.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 44
|
#uid ⇒ String (readonly)
The tag's full UID, including ancestors.
|
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 14
|
Instance Method Details
#inspect ⇒ String
88 89 90 91 92 93 94 |
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 88 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 50
|
#to_s ⇒ String
97 98 99 |
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 97 def to_s name end |