Class: Bootprint::Formatters::JSON
- Inherits:
-
Object
- Object
- Bootprint::Formatters::JSON
- Defined in:
- lib/bootprint/formatters/json.rb
Instance Method Summary collapse
-
#initialize(report) ⇒ JSON
constructor
A new instance of JSON.
- #render ⇒ Object
Constructor Details
#initialize(report) ⇒ JSON
Returns a new instance of JSON.
8 |
# File 'lib/bootprint/formatters/json.rb', line 8 def initialize(report) = @report = report |
Instance Method Details
#render ⇒ Object
9 |
# File 'lib/bootprint/formatters/json.rb', line 9 def render = "#{::JSON.pretty_generate(@report.to_h)}\n" |