Class: Atatus::Metadata::ProcessInfo Private

Inherits:
Object
  • Object
show all
Defined in:
lib/atatus/metadata/process_info.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ ProcessInfo

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ProcessInfo.

API:

  • private



24
25
26
27
28
29
30
# File 'lib/atatus/metadata/process_info.rb', line 24

def initialize(config)
  @config = config

  @argv = ARGV
  @pid = $PID || Process.pid
  @title = $PROGRAM_NAME
end

Instance Attribute Details

#argvObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



32
33
34
# File 'lib/atatus/metadata/process_info.rb', line 32

def argv
  @argv
end

#pidObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



32
33
34
# File 'lib/atatus/metadata/process_info.rb', line 32

def pid
  @pid
end

#titleObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



32
33
34
# File 'lib/atatus/metadata/process_info.rb', line 32

def title
  @title
end