Method: Har#initialize
- Defined in:
- lib/mu/har.rb
#initialize(har_file, options, ignores) ⇒ Har
Returns a new instance of Har.
54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/mu/har.rb', line 54 def initialize har_file, , ignores @har_file = har_file @hosts = {} = @ignores = ignores begin @har = JSON File.read(@har_file) rescue Exception=>e puts "There was an error reading the JSON har file, probably a parsing problem" raise e end end |