Class: SolidQueueGuard::Formatters::Json Private
- Inherits:
-
Object
- Object
- SolidQueueGuard::Formatters::Json
- Defined in:
- lib/solid_queue_guard/formatters/json.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize(report) ⇒ Json
constructor
private
A new instance of Json.
- #render ⇒ Object private
Constructor Details
#initialize(report) ⇒ Json
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Json.
7 8 9 |
# File 'lib/solid_queue_guard/formatters/json.rb', line 7 def initialize(report) @report = report end |
Instance Method Details
#render ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/solid_queue_guard/formatters/json.rb', line 11 def render JSON.pretty_generate(report.to_h) end |