Class: JSONFormatter
- Inherits:
-
ArrayFormatter
- Object
- BaseFormatter
- ArrayFormatter
- JSONFormatter
- Defined in:
- lib/teuton/report/formatter/json_formatter.rb
Overview
JSONFormatter class
Instance Method Summary collapse
-
#initialize(report) ⇒ JSONFormatter
constructor
A new instance of JSONFormatter.
- #process ⇒ Object
Methods inherited from ArrayFormatter
#build_data, #build_final_data, #build_history_data, #build_hof_data, #build_initial_data
Methods inherited from BaseFormatter
Constructor Details
#initialize(report) ⇒ JSONFormatter
Returns a new instance of JSONFormatter.
8 9 10 11 |
# File 'lib/teuton/report/formatter/json_formatter.rb', line 8 def initialize(report) super(report) @data = {} end |
Instance Method Details
#process ⇒ Object
13 14 15 16 17 |
# File 'lib/teuton/report/formatter/json_formatter.rb', line 13 def process build_data w @data.to_json # Write data into ouput file deinit end |