Class: SPSPubLogDRbClient
- Inherits:
-
Object
- Object
- SPSPubLogDRbClient
- Defined in:
- lib/spspublog_drb_client.rb
Instance Method Summary collapse
- #debug(s) ⇒ Object
- #info(s) ⇒ Object
-
#initialize(host: '127.0.0.1', port: '90900') ⇒ SPSPubLogDRbClient
constructor
A new instance of SPSPubLogDRbClient.
Constructor Details
#initialize(host: '127.0.0.1', port: '90900') ⇒ SPSPubLogDRbClient
Returns a new instance of SPSPubLogDRbClient.
10 11 12 13 14 15 16 |
# File 'lib/spspublog_drb_client.rb', line 10 def initialize(host: '127.0.0.1', port: '90900') DRb.start_service @log = DRbObject.new nil, "druby://#{host}:#{port}" end |
Instance Method Details
#debug(s) ⇒ Object
22 23 24 |
# File 'lib/spspublog_drb_client.rb', line 22 def debug(s) @log.debug s end |
#info(s) ⇒ Object
18 19 20 |
# File 'lib/spspublog_drb_client.rb', line 18 def info(s) @log.info s end |