Class: AgentCliRuntime::CapabilityEvidence
- Inherits:
-
Data
- Object
- Data
- AgentCliRuntime::CapabilityEvidence
- Defined in:
- lib/agent_cli_runtime/values.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#capability ⇒ Object
readonly
Returns the value of attribute capability.
-
#diagnostic ⇒ Object
readonly
Returns the value of attribute diagnostic.
-
#launcher_identity ⇒ Object
readonly
Returns the value of attribute launcher_identity.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#supported ⇒ Object
readonly
Returns the value of attribute supported.
Instance Method Summary collapse
-
#initialize(capability:, supported:, provider:, launcher_identity:, arguments: [], diagnostic: nil) ⇒ CapabilityEvidence
constructor
A new instance of CapabilityEvidence.
Constructor Details
#initialize(capability:, supported:, provider:, launcher_identity:, arguments: [], diagnostic: nil) ⇒ CapabilityEvidence
Returns a new instance of CapabilityEvidence.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/agent_cli_runtime/values.rb', line 23 def initialize(capability:, supported:, provider:, launcher_identity:, arguments: [], diagnostic: nil) super( capability: capability.to_sym, supported: supported == true, provider: provider.to_sym, launcher_identity: Immutable.string(launcher_identity), arguments: Immutable.strings(arguments), diagnostic: diagnostic.nil? ? nil : Immutable.string(diagnostic) ) end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments
20 21 22 |
# File 'lib/agent_cli_runtime/values.rb', line 20 def arguments @arguments end |
#capability ⇒ Object (readonly)
Returns the value of attribute capability
20 21 22 |
# File 'lib/agent_cli_runtime/values.rb', line 20 def capability @capability end |
#diagnostic ⇒ Object (readonly)
Returns the value of attribute diagnostic
20 21 22 |
# File 'lib/agent_cli_runtime/values.rb', line 20 def diagnostic @diagnostic end |
#launcher_identity ⇒ Object (readonly)
Returns the value of attribute launcher_identity
20 21 22 |
# File 'lib/agent_cli_runtime/values.rb', line 20 def launcher_identity @launcher_identity end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider
20 21 22 |
# File 'lib/agent_cli_runtime/values.rb', line 20 def provider @provider end |
#supported ⇒ Object (readonly)
Returns the value of attribute supported
20 21 22 |
# File 'lib/agent_cli_runtime/values.rb', line 20 def supported @supported end |