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
45 46 47 |
# File 'lib/kward/plugins/registry.rb', line 45 def id @id end |
#order ⇒ Object
Returns the value of attribute order
45 46 47 |
# File 'lib/kward/plugins/registry.rb', line 45 def order @order end |
#priority ⇒ Object
Returns the value of attribute priority
45 46 47 |
# File 'lib/kward/plugins/registry.rb', line 45 def priority @priority end |
#text ⇒ Object
Returns the value of attribute text
45 46 47 |
# File 'lib/kward/plugins/registry.rb', line 45 def text @text end |
#tooltip ⇒ Object
Returns the value of attribute tooltip
45 46 47 |
# File 'lib/kward/plugins/registry.rb', line 45 def tooltip @tooltip end |
Instance Method Details
#to_h ⇒ Object
46 47 48 |
# File 'lib/kward/plugins/registry.rb', line 46 def to_h { id: id, text: text, tooltip: tooltip, priority: priority.to_s, order: order }.compact end |