Class: AgentCliRuntime::RouteProbeResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider:, ready:, installed:, executable:, version:, minimum_version:, auth_configuration:, route:, route_available:, available_variants:, capability_evidence:, diagnostic: nil) ⇒ RouteProbeResult

Returns a new instance of RouteProbeResult.



345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
# File 'lib/agent_cli_runtime/values.rb', line 345

def initialize(provider:, ready:, installed:, executable:, version:,
               minimum_version:, auth_configuration:, route:,
               route_available:, available_variants:,
               capability_evidence:, diagnostic: nil)
  super(
    provider: provider.to_sym,
    ready: ready == true,
    installed: installed == true,
    executable: Immutable.string(executable),
    version: version.nil? ? nil : Immutable.string(version),
    minimum_version:
      minimum_version.nil? ? nil : Immutable.string(minimum_version),
    auth_configuration: auth_configuration,
    route: route,
    route_available: route_available == true,
    available_variants: Immutable.strings(available_variants),
    capability_evidence: Array(capability_evidence).freeze,
    diagnostic:
      diagnostic.nil? ? nil : Immutable.string(diagnostic)
  )
end

Instance Attribute Details

#auth_configurationObject (readonly)

Returns the value of attribute auth_configuration

Returns:

  • (Object)

    the current value of auth_configuration



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def auth_configuration
  @auth_configuration
end

#available_variantsObject (readonly)

Returns the value of attribute available_variants

Returns:

  • (Object)

    the current value of available_variants



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def available_variants
  @available_variants
end

#capability_evidenceObject (readonly)

Returns the value of attribute capability_evidence

Returns:

  • (Object)

    the current value of capability_evidence



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def capability_evidence
  @capability_evidence
end

#diagnosticObject (readonly)

Returns the value of attribute diagnostic

Returns:

  • (Object)

    the current value of diagnostic



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def diagnostic
  @diagnostic
end

#executableObject (readonly)

Returns the value of attribute executable

Returns:

  • (Object)

    the current value of executable



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def executable
  @executable
end

#installedObject (readonly)

Returns the value of attribute installed

Returns:

  • (Object)

    the current value of installed



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def installed
  @installed
end

#minimum_versionObject (readonly)

Returns the value of attribute minimum_version

Returns:

  • (Object)

    the current value of minimum_version



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def minimum_version
  @minimum_version
end

#providerObject (readonly)

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def provider
  @provider
end

#readyObject (readonly)

Returns the value of attribute ready

Returns:

  • (Object)

    the current value of ready



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def ready
  @ready
end

#routeObject (readonly)

Returns the value of attribute route

Returns:

  • (Object)

    the current value of route



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def route
  @route
end

#route_availableObject (readonly)

Returns the value of attribute route_available

Returns:

  • (Object)

    the current value of route_available



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def route_available
  @route_available
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



339
340
341
# File 'lib/agent_cli_runtime/values.rb', line 339

def version
  @version
end