Class: Mumukit::Bridge::ResponseType::Structured

Inherits:
Base
  • Object
show all
Defined in:
lib/mumukit/bridge/runner/response_type.rb

Direct Known Subclasses

Mixed

Instance Method Summary collapse

Methods inherited from Base

#global_status, #parse, #parse_expectation_results

Instance Method Details

#build_hash(response) ⇒ Object



32
33
34
35
36
37
# File 'lib/mumukit/bridge/runner/response_type.rb', line 32

def build_hash(response)
  test_results = parse_test_results(response['testResults'])
  {response_type: :structured,
   test_results: test_results,
   status: test_results.fetch_mumuki_status(:status)}
end