Class: RailsConsolePro::Printers::QueueInsightsPrinter
- Inherits:
-
BasePrinter
- Object
- BasePrinter
- RailsConsolePro::Printers::QueueInsightsPrinter
- Defined in:
- lib/rails_console_pro/printers/queue_insights_printer.rb
Instance Attribute Summary
Attributes inherited from BasePrinter
#output, #pry_instance, #value
Instance Method Summary collapse
Methods inherited from BasePrinter
Methods included from ColorHelper
#bold_color, #color, #method_missing, #pastel, #respond_to_missing?
Constructor Details
This class inherits a constructor from RailsConsolePro::BasePrinter
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RailsConsolePro::ColorHelper
Instance Method Details
#print ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/rails_console_pro/printers/queue_insights_printer.rb', line 6 def print print_header print_warnings print_section("📬 Enqueued Jobs", value.enqueued_jobs) { |job| format_job(job) } print_section("🔁 Retry Set", value.retry_jobs) { |job| format_job(job, include_attempts: true) } print_section("⚙️ Recent Executions", value.recent_executions) { |execution| format_execution(execution) } end |