Class: CountVonCount::Formatters::Json

Inherits:
Base
  • Object
show all
Defined in:
lib/count_von_count/formatter.rb

Instance Attribute Summary

Attributes inherited from Base

#output_dir, #path

Instance Method Summary collapse

Methods inherited from Base

#initialize, #write_output

Constructor Details

This class inherits a constructor from CountVonCount::Formatters::Base

Instance Method Details

#extensionObject



68
69
70
# File 'lib/count_von_count/formatter.rb', line 68

def extension
  "json"
end

#serialize(countObj) ⇒ Object



71
72
73
# File 'lib/count_von_count/formatter.rb', line 71

def serialize(countObj)
  countObj.to_json
end