Class: BuildkiteGraphqlRuby::ResultsParsers::RspecResults
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- BuildkiteGraphqlRuby::ResultsParsers::RspecResults
- Defined in:
- lib/buildkite_graphql_ruby/results_parsers/rspec_results.rb
Defined Under Namespace
Classes: Example
Class Method Summary collapse
Class Method Details
.from_response(raw_response) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# 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 |