Skip to content
Kward Search API index

Class: Kward::PluginRegistry::StatusSegment

Inherits:
Struct
  • Object
show all
Defined in:
lib/kward/plugins/registry.rb

Overview

Rendered, frontend-neutral status contribution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#id ⇒ Object

Returns the value of attribute id

Returns:

  • (Object) —

    the current value of id



48
49
50
# File 'lib/kward/plugins/registry.rb', line 48

def id
  @id
end

#order ⇒ Object

Returns the value of attribute order

Returns:

  • (Object) —

    the current value of order



48
49
50
# File 'lib/kward/plugins/registry.rb', line 48

def order
  @order
end

#priority ⇒ Object

Returns the value of attribute priority

Returns:

  • (Object) —

    the current value of priority



48
49
50
# File 'lib/kward/plugins/registry.rb', line 48

def priority
  @priority
end

#text ⇒ Object

Returns the value of attribute text

Returns:

  • (Object) —

    the current value of text



48
49
50
# File 'lib/kward/plugins/registry.rb', line 48

def text
  @text
end

#tooltip ⇒ Object

Returns the value of attribute tooltip

Returns:

  • (Object) —

    the current value of 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