Class: Dogviz::Process

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(processor, description) ⇒ Process

Returns a new instance of Process.



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

def initialize(processor, description)
  @processor = processor
  @description = description
end

Instance Attribute Details

#processorObject (readonly)

Returns the value of attribute processor.



16
17
18
# File 'lib/dogviz/process.rb', line 16

def processor
  @processor
end

Instance Method Details

#descriptionObject



12
13
14
# File 'lib/dogviz/process.rb', line 12

def description
  @description
end

#nameObject



8
9
10
# File 'lib/dogviz/process.rb', line 8

def name
  @processor.name
end