Class: Ibex::TableArtifact::Executor::Result
- Inherits:
-
Object
- Object
- Ibex::TableArtifact::Executor::Result
- Defined in:
- lib/ibex/table_artifact/executor.rb
Instance Attribute Summary collapse
-
#consumed_tokens ⇒ Object
readonly
: Integer.
-
#reason ⇒ Object
readonly
: String?.
-
#status ⇒ Object
readonly
: Symbol.
-
#steps ⇒ Object
readonly
: Integer.
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 ⇒ Object (readonly)
: Integer
10 11 12 |
# File 'lib/ibex/table_artifact/executor.rb', line 10 def consumed_tokens @consumed_tokens end |
#reason ⇒ Object (readonly)
: String?
11 12 13 |
# File 'lib/ibex/table_artifact/executor.rb', line 11 def reason @reason end |
#status ⇒ Object (readonly)
: Symbol
8 9 10 |
# File 'lib/ibex/table_artifact/executor.rb', line 8 def status @status end |
#steps ⇒ Object (readonly)
: Integer
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 |