Class: AgentCliRuntime::ObservableResult
- Inherits:
-
Data
- Object
- Data
- AgentCliRuntime::ObservableResult
- Defined in:
- lib/agent_cli_runtime/values.rb
Instance Attribute Summary collapse
-
#diagnostic ⇒ Object
readonly
Returns the value of attribute diagnostic.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#final_message ⇒ Object
readonly
Returns the value of attribute final_message.
-
#launcher_identity ⇒ Object
readonly
Returns the value of attribute launcher_identity.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#provider_signal ⇒ Object
readonly
Returns the value of attribute provider_signal.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timed_out ⇒ Object
readonly
Returns the value of attribute timed_out.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(provider:, launcher_identity:, exit_code:, timed_out:, status:, usage:, final_message:, diagnostic:, provider_signal: nil) ⇒ ObservableResult
constructor
A new instance of ObservableResult.
Constructor Details
#initialize(provider:, launcher_identity:, exit_code:, timed_out:, status:, usage:, final_message:, diagnostic:, provider_signal: nil) ⇒ ObservableResult
Returns a new instance of ObservableResult.
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/agent_cli_runtime/values.rb', line 188 def initialize(provider:, launcher_identity:, exit_code:, timed_out:, status:, usage:, final_message:, diagnostic:, provider_signal: nil) super( provider: provider.to_sym, launcher_identity: Immutable.string(launcher_identity), exit_code: exit_code, timed_out: timed_out == true, status: status&.to_sym, usage: usage&.dup&.freeze, final_message: .nil? ? nil : Immutable.string(), diagnostic: diagnostic.nil? ? nil : Immutable.string(diagnostic), provider_signal: provider_signal&.dup&.freeze ) end |
Instance Attribute Details
#diagnostic ⇒ Object (readonly)
Returns the value of attribute diagnostic
184 185 186 |
# File 'lib/agent_cli_runtime/values.rb', line 184 def diagnostic @diagnostic end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code
184 185 186 |
# File 'lib/agent_cli_runtime/values.rb', line 184 def exit_code @exit_code end |
#final_message ⇒ Object (readonly)
Returns the value of attribute final_message
184 185 186 |
# File 'lib/agent_cli_runtime/values.rb', line 184 def @final_message end |
#launcher_identity ⇒ Object (readonly)
Returns the value of attribute launcher_identity
184 185 186 |
# File 'lib/agent_cli_runtime/values.rb', line 184 def launcher_identity @launcher_identity end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider
184 185 186 |
# File 'lib/agent_cli_runtime/values.rb', line 184 def provider @provider end |
#provider_signal ⇒ Object (readonly)
Returns the value of attribute provider_signal
184 185 186 |
# File 'lib/agent_cli_runtime/values.rb', line 184 def provider_signal @provider_signal end |
#status ⇒ Object (readonly)
Returns the value of attribute status
184 185 186 |
# File 'lib/agent_cli_runtime/values.rb', line 184 def status @status end |
#timed_out ⇒ Object (readonly)
Returns the value of attribute timed_out
184 185 186 |
# File 'lib/agent_cli_runtime/values.rb', line 184 def timed_out @timed_out end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage
184 185 186 |
# File 'lib/agent_cli_runtime/values.rb', line 184 def usage @usage end |