Class: AgentCliRuntime::CapabilityEvidence

Inherits:
Data
  • Object
show all
Defined in:
lib/agent_cli_runtime/values.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject (readonly)

Returns the value of attribute arguments

Returns:

  • (Object)

    the current value of arguments



20
21
22
# File 'lib/agent_cli_runtime/values.rb', line 20

def arguments
  @arguments
end

#capabilityObject (readonly)

Returns the value of attribute capability

Returns:

  • (Object)

    the current value of capability



20
21
22
# File 'lib/agent_cli_runtime/values.rb', line 20

def capability
  @capability
end

#diagnosticObject (readonly)

Returns the value of attribute diagnostic

Returns:

  • (Object)

    the current value of diagnostic



20
21
22
# File 'lib/agent_cli_runtime/values.rb', line 20

def diagnostic
  @diagnostic
end

#launcher_identityObject (readonly)

Returns the value of attribute launcher_identity

Returns:

  • (Object)

    the current value of launcher_identity



20
21
22
# File 'lib/agent_cli_runtime/values.rb', line 20

def launcher_identity
  @launcher_identity
end

#providerObject (readonly)

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



20
21
22
# File 'lib/agent_cli_runtime/values.rb', line 20

def provider
  @provider
end

#supportedObject (readonly)

Returns the value of attribute supported

Returns:

  • (Object)

    the current value of supported



20
21
22
# File 'lib/agent_cli_runtime/values.rb', line 20

def supported
  @supported
end