Class: TTK::Services::TesterClient
- Inherits:
-
DRbService
- Object
- DRb::DRbService
- DRbService
- TTK::Services::TesterClient
- Includes:
- SubTestable
- Defined in:
- lib/ttk/services/TesterClient.rb
Instance Attribute Summary collapse
-
#master ⇒ Object
readonly
Returns the value of attribute master.
-
#slave ⇒ Object
readonly
Returns the value of attribute slave.
Instance Method Summary collapse
-
#initialize ⇒ TesterClient
constructor
A new instance of TesterClient.
- #start_service(uri = nil, sub_tester_uris = [], local_slave = false) ⇒ Object
Methods inherited from DRbService
Constructor Details
#initialize ⇒ TesterClient
Returns a new instance of TesterClient.
14 15 16 17 18 |
# File 'lib/ttk/services/TesterClient.rb', line 14 def initialize sub_testable_initialize @master = nil @slave = nil end |
Instance Attribute Details
#master ⇒ Object (readonly)
Returns the value of attribute master.
20 21 22 |
# File 'lib/ttk/services/TesterClient.rb', line 20 def master @master end |
#slave ⇒ Object (readonly)
Returns the value of attribute slave.
21 22 23 |
# File 'lib/ttk/services/TesterClient.rb', line 21 def slave @slave end |
Instance Method Details
#start_service(uri = nil, sub_tester_uris = [], local_slave = false) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/ttk/services/TesterClient.rb', line 23 def start_service(uri=nil, sub_tester_uris=[], local_slave=false) super(uri) sub_testable_set(sub_tester_uris) if local_slave @slave = Testers::Slave.new(self, 'local slave') @sub_testers[self.uri] = @slave end @master = Testers::Master.new(self, 'local master', @sub_testers) end |