Class: Roma::Test::RomaProc
- Inherits:
-
Object
- Object
- Roma::Test::RomaProc
- Defined in:
- lib/roma/tools/test-scenario.rb
Instance Attribute Summary collapse
-
#addr ⇒ Object
Returns the value of attribute addr.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#port ⇒ Object
Returns the value of attribute port.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(a, p) ⇒ RomaProc
constructor
A new instance of RomaProc.
Constructor Details
#initialize(a, p) ⇒ RomaProc
Returns a new instance of RomaProc.
16 17 18 19 |
# File 'lib/roma/tools/test-scenario.rb', line 16 def initialize a, p @addr = a @port = p end |
Instance Attribute Details
#addr ⇒ Object
Returns the value of attribute addr.
12 13 14 |
# File 'lib/roma/tools/test-scenario.rb', line 12 def addr @addr end |
#pid ⇒ Object
Returns the value of attribute pid.
14 15 16 |
# File 'lib/roma/tools/test-scenario.rb', line 14 def pid @pid end |
#port ⇒ Object
Returns the value of attribute port.
13 14 15 |
# File 'lib/roma/tools/test-scenario.rb', line 13 def port @port end |
Class Method Details
.to_str(procs) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/roma/tools/test-scenario.rb', line 21 def self.to_str procs msg = "" procs.each { |proc| msg = msg + proc.addr + "_" + proc.port.to_s + " " } msg end |