Class: ProcessObj

Inherits:
Object
  • Object
show all
Defined in:
lib/macos_utility/process_obj.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, pid, cpu, mem, vsz, rss, tty, stat, started, time, cmd) ⇒ ProcessObj

Returns a new instance of ProcessObj.



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/macos_utility/process_obj.rb', line 3

def initialize(user, pid, cpu, mem, vsz, rss, tty, stat, started, time, cmd)
  @user = user
  @pid = pid
  @cpu = cpu
  @mem = mem
  @vsz = vsz
  @rss = rss
  @tty = tty
  @stat = stat
  @started = started
  @time = time
  @cmd = cmd
end

Instance Attribute Details

#cmdObject

Returns the value of attribute cmd.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def cmd
  @cmd
end

#cpuObject

Returns the value of attribute cpu.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def cpu
  @cpu
end

#memObject

Returns the value of attribute mem.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def mem
  @mem
end

#pidObject

Returns the value of attribute pid.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def pid
  @pid
end

#rssObject

Returns the value of attribute rss.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def rss
  @rss
end

#startedObject

Returns the value of attribute started.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def started
  @started
end

#statObject

Returns the value of attribute stat.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def stat
  @stat
end

#timeObject

Returns the value of attribute time.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def time
  @time
end

#ttyObject

Returns the value of attribute tty.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def tty
  @tty
end

#userObject

Returns the value of attribute user.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def user
  @user
end

#vszObject

Returns the value of attribute vsz.



2
3
4
# File 'lib/macos_utility/process_obj.rb', line 2

def vsz
  @vsz
end