Class: DeepTest::Distributed::DRbClientConnectionInfo
- Inherits:
-
Object
- Object
- DeepTest::Distributed::DRbClientConnectionInfo
- Defined in:
- lib/deep_test/distributed/drb_client_connection_info.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
Instance Method Summary collapse
-
#initialize ⇒ DRbClientConnectionInfo
constructor
A new instance of DRbClientConnectionInfo.
Constructor Details
#initialize ⇒ DRbClientConnectionInfo
Returns a new instance of DRbClientConnectionInfo.
6 7 8 9 10 11 12 |
# File 'lib/deep_test/distributed/drb_client_connection_info.rb', line 6 def initialize info = Thread.current['DRb'] raise "No DRb client found" unless info && info['client'] peeraddr = info['client'].peeraddr DeepTest.logger.debug("DRbClientConnection info: #{peeraddr.inspect}") @address = peeraddr[3] end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
4 5 6 |
# File 'lib/deep_test/distributed/drb_client_connection_info.rb', line 4 def address @address end |