Class: Bootprint::Formatters::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/bootprint/formatters/json.rb

Instance Method Summary collapse

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

#renderObject



9
# File 'lib/bootprint/formatters/json.rb', line 9

def render = "#{::JSON.pretty_generate(@report.to_h)}\n"