class BuildkiteGraphqlRuby::ResultsParsers::RspecResults

Public Class Methods

from_response(raw_response) click to toggle source
# File lib/buildkite_graphql_ruby/results_parsers/rspec_results.rb, line 22
def self.from_response(raw_response)
  response = JSON.parse(raw_response)
  examples = response['examples'].map{|e| Example.from_response(e)}

  new(
    summary: response['summary'],
    summary_line: response['summary_line'],
    examples: examples,
  )
end