Class: JSONFormatter
- Inherits:
-
ArrayFormatter
- Object
- BaseFormatter
- ArrayFormatter
- JSONFormatter
- Defined in:
- lib/teuton/report/formatter/default/json.rb
Instance Attribute Summary
Attributes inherited from BaseFormatter
Instance Method Summary collapse
-
#initialize(report) ⇒ JSONFormatter
constructor
A new instance of JSONFormatter.
- #process(options = {}) ⇒ Object
Methods inherited from ArrayFormatter
Methods inherited from BaseFormatter
Constructor Details
#initialize(report) ⇒ JSONFormatter
5 6 7 8 |
# File 'lib/teuton/report/formatter/default/json.rb', line 5 def initialize(report) super(report) @ext = "json" end |
Instance Method Details
#process(options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/teuton/report/formatter/default/json.rb', line 10 def process( = {}) build_data() w @data.to_json # Write data into ouput file deinit end |