Class: ProcessObj
- Inherits:
-
Object
- Object
- ProcessObj
- Defined in:
- lib/macos_utility/process_obj.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#cpu ⇒ Object
Returns the value of attribute cpu.
-
#mem ⇒ Object
Returns the value of attribute mem.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#rss ⇒ Object
Returns the value of attribute rss.
-
#started ⇒ Object
Returns the value of attribute started.
-
#stat ⇒ Object
Returns the value of attribute stat.
-
#time ⇒ Object
Returns the value of attribute time.
-
#tty ⇒ Object
Returns the value of attribute tty.
-
#user ⇒ Object
Returns the value of attribute user.
-
#vsz ⇒ Object
Returns the value of attribute vsz.
Instance Method Summary collapse
-
#initialize(user, pid, cpu, mem, vsz, rss, tty, stat, started, time, cmd) ⇒ ProcessObj
constructor
A new instance of ProcessObj.
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
#cmd ⇒ Object
Returns the value of attribute cmd.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def cmd @cmd end |
#cpu ⇒ Object
Returns the value of attribute cpu.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def cpu @cpu end |
#mem ⇒ Object
Returns the value of attribute mem.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def mem @mem end |
#pid ⇒ Object
Returns the value of attribute pid.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def pid @pid end |
#rss ⇒ Object
Returns the value of attribute rss.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def rss @rss end |
#started ⇒ Object
Returns the value of attribute started.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def started @started end |
#stat ⇒ Object
Returns the value of attribute stat.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def stat @stat end |
#time ⇒ Object
Returns the value of attribute time.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def time @time end |
#tty ⇒ Object
Returns the value of attribute tty.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def tty @tty end |
#user ⇒ Object
Returns the value of attribute user.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def user @user end |
#vsz ⇒ Object
Returns the value of attribute vsz.
2 3 4 |
# File 'lib/macos_utility/process_obj.rb', line 2 def vsz @vsz end |