Class: AgentCliRuntime::CompiledInvocation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv:, stdin_data:, provider:, launcher_identity:, capability_evidence:) ⇒ CompiledInvocation

Returns a new instance of CompiledInvocation.



99
100
101
102
103
104
105
106
107
108
# File 'lib/agent_cli_runtime/values.rb', line 99

def initialize(argv:, stdin_data:, provider:, launcher_identity:,
               capability_evidence:)
  super(
    argv: Immutable.strings(argv),
    stdin_data: stdin_data.nil? ? nil : Immutable.string(stdin_data),
    provider: provider.to_sym,
    launcher_identity: Immutable.string(launcher_identity),
    capability_evidence: Array(capability_evidence).freeze
  )
end

Instance Attribute Details

#argvObject (readonly)

Returns the value of attribute argv

Returns:

  • (Object)

    the current value of argv



96
97
98
# File 'lib/agent_cli_runtime/values.rb', line 96

def argv
  @argv
end

#capability_evidenceObject (readonly)

Returns the value of attribute capability_evidence

Returns:

  • (Object)

    the current value of capability_evidence



96
97
98
# File 'lib/agent_cli_runtime/values.rb', line 96

def capability_evidence
  @capability_evidence
end

#launcher_identityObject (readonly)

Returns the value of attribute launcher_identity

Returns:

  • (Object)

    the current value of launcher_identity



96
97
98
# File 'lib/agent_cli_runtime/values.rb', line 96

def launcher_identity
  @launcher_identity
end

#providerObject (readonly)

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



96
97
98
# File 'lib/agent_cli_runtime/values.rb', line 96

def provider
  @provider
end

#stdin_dataObject (readonly)

Returns the value of attribute stdin_data

Returns:

  • (Object)

    the current value of stdin_data



96
97
98
# File 'lib/agent_cli_runtime/values.rb', line 96

def stdin_data
  @stdin_data
end