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.
-
#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:) ⇒ ObservableResult
constructor
A new instance of ObservableResult.
Constructor Details
#initialize(provider:, launcher_identity:, exit_code:, timed_out:, status:, usage:, final_message:, diagnostic:) ⇒ ObservableResult
Returns a new instance of ObservableResult.
159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/agent_cli_runtime/values.rb', line 159 def initialize(provider:, launcher_identity:, exit_code:, timed_out:, status:, usage:, final_message:, diagnostic:) 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) ) end |
Instance Attribute Details
#diagnostic ⇒ Object (readonly)
Returns the value of attribute diagnostic
155 156 157 |
# File 'lib/agent_cli_runtime/values.rb', line 155 def diagnostic @diagnostic end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code
155 156 157 |
# File 'lib/agent_cli_runtime/values.rb', line 155 def exit_code @exit_code end |
#final_message ⇒ Object (readonly)
Returns the value of attribute final_message
155 156 157 |
# File 'lib/agent_cli_runtime/values.rb', line 155 def @final_message end |
#launcher_identity ⇒ Object (readonly)
Returns the value of attribute launcher_identity
155 156 157 |
# File 'lib/agent_cli_runtime/values.rb', line 155 def launcher_identity @launcher_identity end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider
155 156 157 |
# File 'lib/agent_cli_runtime/values.rb', line 155 def provider @provider end |
#status ⇒ Object (readonly)
Returns the value of attribute status
155 156 157 |
# File 'lib/agent_cli_runtime/values.rb', line 155 def status @status end |
#timed_out ⇒ Object (readonly)
Returns the value of attribute timed_out
155 156 157 |
# File 'lib/agent_cli_runtime/values.rb', line 155 def timed_out @timed_out end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage
155 156 157 |
# File 'lib/agent_cli_runtime/values.rb', line 155 def usage @usage end |