class Riffer::Agent::Outcome
rbs_inline: enabled
Constants
- NORMAL_FINISH_REASONS
- PROVIDER_STOP_REASONS
- VALUES
Attributes
Public Class Methods
Source
# File lib/riffer/agent/outcome.rb, line 18 def initialize(reason:, detail: nil) unless VALUES.include?(reason) raise Riffer::ArgumentError, "reason must be one of #{VALUES.inspect}, got #{reason.inspect}" end @reason = reason @detail = detail end
Public Instance Methods
Source
# File lib/riffer/agent/outcome.rb, line 29 def success? reason == :completed end