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.



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

#argumentsObject (readonly)

Returns the value of attribute arguments

Returns:

  • (Object)

    the current value of arguments



49
50
51
# File 'lib/agent_cli_runtime/values.rb', line 49

def arguments
  @arguments
end

#capabilityObject (readonly)

Returns the value of attribute capability

Returns:

  • (Object)

    the current value of capability



49
50
51
# File 'lib/agent_cli_runtime/values.rb', line 49

def capability
  @capability
end

#diagnosticObject (readonly)

Returns the value of attribute diagnostic

Returns:

  • (Object)

    the current value of diagnostic



49
50
51
# File 'lib/agent_cli_runtime/values.rb', line 49

def diagnostic
  @diagnostic
end

#launcher_identityObject (readonly)

Returns the value of attribute launcher_identity

Returns:

  • (Object)

    the current value of launcher_identity



49
50
51
# File 'lib/agent_cli_runtime/values.rb', line 49

def launcher_identity
  @launcher_identity
end

#providerObject (readonly)

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



49
50
51
# File 'lib/agent_cli_runtime/values.rb', line 49

def provider
  @provider
end

#supportedObject (readonly)

Returns the value of attribute supported

Returns:

  • (Object)

    the current value of supported



49
50
51
# File 'lib/agent_cli_runtime/values.rb', line 49

def supported
  @supported
end