Class: Pkgr::Process

Inherits:
Object
  • Object
show all
Defined in:
lib/pkgr/process.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, command, scale = 1) ⇒ Process

Returns a new instance of Process.



6
7
8
9
10
# File 'lib/pkgr/process.rb', line 6

def initialize(name, command, scale = 1)
  @name = name
  @command = command
  @scale = scale || 1
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



3
4
5
# File 'lib/pkgr/process.rb', line 3

def command
  @command
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/pkgr/process.rb', line 3

def name
  @name
end

#scaleObject

Returns the value of attribute scale.



4
5
6
# File 'lib/pkgr/process.rb', line 4

def scale
  @scale
end