Class: Kward::PluginRegistry::StatusSegment
- Inherits:
-
Struct
- Object
- Struct
- Kward::PluginRegistry::StatusSegment
- Defined in:
- lib/kward/plugins/registry.rb
Overview
Rendered, frontend-neutral status contribution.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#order ⇒ Object
Returns the value of attribute order.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#text ⇒ Object
Returns the value of attribute text.
-
#tooltip ⇒ Object
Returns the value of attribute tooltip.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
48 49 50 |
# File 'lib/kward/plugins/registry.rb', line 48 def id @id end |
#order ⇒ Object
Returns the value of attribute order
48 49 50 |
# File 'lib/kward/plugins/registry.rb', line 48 def order @order end |
#priority ⇒ Object
Returns the value of attribute priority
48 49 50 |
# File 'lib/kward/plugins/registry.rb', line 48 def priority @priority end |
#text ⇒ Object
Returns the value of attribute text
48 49 50 |
# File 'lib/kward/plugins/registry.rb', line 48 def text @text end |
#tooltip ⇒ Object
Returns the value of attribute tooltip
48 49 50 |
# File 'lib/kward/plugins/registry.rb', line 48 def tooltip @tooltip end |
Instance Method Details
#to_h ⇒ Object
49 50 51 |
# File 'lib/kward/plugins/registry.rb', line 49 def to_h { id: id, text: text, tooltip: tooltip, priority: priority.to_s, order: order }.compact end |