class SidekiqSpy::Display::Panels::Header
Attributes
panel_main[RW]
Public Class Methods
new(height, width, top, left)
click to toggle source
Calls superclass method
SidekiqSpy::Display::Panel::new
# File lib/sidekiq-spy/display/panels/header.rb, line 11 def initialize(height, width, top, left) super(height, width, top, left, structure, :divider_r => " ") end
Public Instance Methods
structure()
click to toggle source
# File lib/sidekiq-spy/display/panels/header.rb, line 15 def structure @panel_main = nil # set by Display::Screen#main_panel= # [ # [relative_column_width, data_left, data_right] # ] [ [ [1, t[:program], nil], [2, -> { [:workers, :queues, :retries, :schedules].map do |e| t[:menu][(e == @panel_main ? :active : :inactive)][e] end.join(" ") }, nil], [1, nil, -> { Time.now.strftime("%T %z") }], ], ] end