Class: Gaskit::QueryResult

Inherits:
OperationResult show all
Defined in:
lib/gaskit/boot/query.rb

Overview

Represents a result object specific for query-related operations.

Examples:

Handling results from a query operation

result = Gaskit::QueryResult.new(true, { records: [] }, nil, 2.45)
if result.success?
  puts "Query succeeded with records: #{result.value[:records]}"
else
  puts "Query failed: #{result.reason}"
end

Instance Attribute Summary

Attributes inherited from OperationResult

#context, #duration, #error, #success, #value

Method Summary

Methods inherited from OperationResult

#early_exit?, #failure?, #initialize, #inspect, #status, #success?, #to_h, #to_json

Constructor Details

This class inherits a constructor from Gaskit::OperationResult