Class: Vernier::Output::Firefox
- Inherits:
-
Object
- Object
- Vernier::Output::Firefox
- Defined in:
- lib/vernier/output/firefox.rb
Overview
Defined Under Namespace
Classes: Categorizer, Thread
Instance Method Summary collapse
-
#initialize(profile) ⇒ Firefox
constructor
A new instance of Firefox.
- #output(gzip: false) ⇒ Object
Constructor Details
#initialize(profile) ⇒ Firefox
117 118 119 120 |
# File 'lib/vernier/output/firefox.rb', line 117 def initialize(profile) @profile = profile @categorizer = Categorizer.new end |
Instance Method Details
#output(gzip: false) ⇒ Object
122 123 124 125 126 127 128 129 |
# File 'lib/vernier/output/firefox.rb', line 122 def output(gzip: false) result = ::JSON.generate(data) if gzip require "zlib" result = Zlib.gzip(result) end result end |