class Fukuzatsu::Formatters::JsonIndex
Attributes
summaries[R]
Public Class Methods
new(summaries, base_output_path)
click to toggle source
# File lib/fukuzatsu/formatters/json_index.rb, line 11 def initialize(summaries, base_output_path) @summaries = summaries @base_output_path = base_output_path end
Public Instance Methods
content()
click to toggle source
# File lib/fukuzatsu/formatters/json_index.rb, line 16 def content summaries.map { |summary| Json.new(summary: summary, base_output_path: self.base_output_path).as_json }.to_json end
file_extension()
click to toggle source
# File lib/fukuzatsu/formatters/json_index.rb, line 24 def file_extension ".json" end
filename()
click to toggle source
# File lib/fukuzatsu/formatters/json_index.rb, line 20 def filename "json/results.json" end