Class: SixthSense::Reporters::Json

Inherits:
Object
  • Object
show all
Defined in:
lib/sixth_sense/reporters/json.rb

Instance Method Summary collapse

Instance Method Details

#render(reports) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/sixth_sense/reporters/json.rb', line 8

def render(reports)
  JSON.pretty_generate(
    {
      version: SixthSense::VERSION,
      reports: reports.map(&:to_h)
    }
  )
end