Class: GraphQL::Autotest::Report::Execution
- Inherits:
-
Struct
- Object
- Struct
- GraphQL::Autotest::Report::Execution
- Defined in:
- lib/graphql/autotest/report.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
Returns the value of attribute query.
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
Instance Attribute Details
#query ⇒ Object
Returns the value of attribute query
4 5 6 |
# File 'lib/graphql/autotest/report.rb', line 4 def query @query end |
#result ⇒ Object
Returns the value of attribute result
4 5 6 |
# File 'lib/graphql/autotest/report.rb', line 4 def result @result end |
Instance Method Details
#query_summary ⇒ Object
5 6 7 |
# File 'lib/graphql/autotest/report.rb', line 5 def query_summary query.lines[1].strip end |
#to_error_message ⇒ Object
9 10 11 |
# File 'lib/graphql/autotest/report.rb', line 9 def query_summary + "\n" + result['errors'].inspect end |