Method: XCResult::Parser#initialize

Defined in:
lib/xcresult/parser.rb

#initialize(path: nil) ⇒ Parser

Returns a new instance of Parser.



10
11
12
13
14
15
16
17
# File 'lib/xcresult/parser.rb', line 10

def initialize(path: nil)
  @path = Shellwords.escape(path)

  result_bundle_json_raw = get_result_bundle_json
  @result_bundle_json = JSON.parse(result_bundle_json_raw)

  @actions_invocation_record = XCResult::ActionsInvocationRecord.new(@result_bundle_json)
end