Class: Ibex::TableArtifact::Executor::Result
- Inherits:
-
Object
- Object
- Ibex::TableArtifact::Executor::Result
- Defined in:
- lib/ibex/table_artifact/executor.rb,
sig/ibex/table_artifact/executor.rbs
Instance Attribute Summary collapse
- #consumed_tokens ⇒ Integer readonly
- #reason ⇒ String? readonly
- #status ⇒ Symbol readonly
- #steps ⇒ Integer readonly
Instance Method Summary collapse
- #accepted? ⇒ Boolean
- #exhausted? ⇒ Boolean
-
#initialize(status:, steps:, consumed_tokens:, reason:) ⇒ Result
constructor
A new instance of Result.
- #rejected? ⇒ Boolean
Constructor Details
#initialize(status:, steps:, consumed_tokens:, reason:) ⇒ Result
Returns a new instance of Result.
14 15 16 17 18 19 20 |
# File 'lib/ibex/table_artifact/executor.rb', line 14 def initialize(status:, steps:, consumed_tokens:, reason:) @status = status @steps = steps @consumed_tokens = consumed_tokens @reason = reason freeze end |
Instance Attribute Details
#consumed_tokens ⇒ Integer (readonly)
10 11 12 |
# File 'lib/ibex/table_artifact/executor.rb', line 10 def consumed_tokens @consumed_tokens end |
#reason ⇒ String? (readonly)
11 12 13 |
# File 'lib/ibex/table_artifact/executor.rb', line 11 def reason @reason end |
#status ⇒ Symbol (readonly)
8 9 10 |
# File 'lib/ibex/table_artifact/executor.rb', line 8 def status @status end |
#steps ⇒ Integer (readonly)
9 10 11 |
# File 'lib/ibex/table_artifact/executor.rb', line 9 def steps @steps end |
Instance Method Details
#accepted? ⇒ Boolean
23 24 |
# File 'lib/ibex/table_artifact/executor.rb', line 23 def accepted? = status == :accepted # @rbs () -> bool |
#exhausted? ⇒ Boolean
27 |
# File 'lib/ibex/table_artifact/executor.rb', line 27 def exhausted? = status == :exhausted |
#rejected? ⇒ Boolean
25 26 |
# File 'lib/ibex/table_artifact/executor.rb', line 25 def rejected? = status == :rejected # @rbs () -> bool |