Class: Vernier::Output::Firefox

Inherits:
Object
  • Object
show all
Defined in:
lib/vernier/output/firefox.rb

Overview

Defined Under Namespace

Classes: Categorizer, Thread

Instance Method Summary collapse

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