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
Returns a new instance of JSONFormatter.
6 7 8 9 |
# File 'lib/teuton/report/formatter/default/json.rb', line 6 def initialize(report) super @ext = "json" end |
Instance Method Details
#process(options = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/teuton/report/formatter/default/json.rb', line 11 def process( = {}) build_data() w @data.to_json # Write data into ouput file deinit end |