Class: Gaskit::ServiceResult

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

Overview

Represents a result object specific for service-related operations.

Examples:

Handling results from a service operation

result = Gaskit::ServiceResult.new(false, nil, RuntimeError.new("Service failed"), 0.89)
if result.failure?
  puts "Service 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