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



45
46
47
# File 'lib/kward/plugins/registry.rb', line 45

def id
  @id
end

#order ⇒ Object

Returns the value of attribute order

Returns:

  • (Object) —

    the current value of order



45
46
47
# File 'lib/kward/plugins/registry.rb', line 45

def order
  @order
end

#priority ⇒ Object

Returns the value of attribute priority

Returns:

  • (Object) —

    the current value of priority



45
46
47
# File 'lib/kward/plugins/registry.rb', line 45

def priority
  @priority
end

#text ⇒ Object

Returns the value of attribute text

Returns:

  • (Object) —

    the current value of text



45
46
47
# File 'lib/kward/plugins/registry.rb', line 45

def text
  @text
end

#tooltip ⇒ Object

Returns the value of attribute tooltip

Returns:

  • (Object) —

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