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.
52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/agent_cli_runtime/values.rb', line 52 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
49 50 51 |
# File 'lib/agent_cli_runtime/values.rb', line 49 def arguments @arguments end |
#capability ⇒ Object (readonly)
Returns the value of attribute capability
49 50 51 |
# File 'lib/agent_cli_runtime/values.rb', line 49 def capability @capability end |
#diagnostic ⇒ Object (readonly)
Returns the value of attribute diagnostic
49 50 51 |
# File 'lib/agent_cli_runtime/values.rb', line 49 def diagnostic @diagnostic end |
#launcher_identity ⇒ Object (readonly)
Returns the value of attribute launcher_identity
49 50 51 |
# File 'lib/agent_cli_runtime/values.rb', line 49 def launcher_identity @launcher_identity end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider
49 50 51 |
# File 'lib/agent_cli_runtime/values.rb', line 49 def provider @provider end |
#supported ⇒ Object (readonly)
Returns the value of attribute supported
49 50 51 |
# File 'lib/agent_cli_runtime/values.rb', line 49 def supported @supported end |