Class: SQLiteServer2018
- Inherits:
-
Object
- Object
- SQLiteServer2018
- Defined in:
- lib/sqlite_server2018.rb
Instance Method Summary collapse
-
#initialize(host: 'localhost', port: '57000', cache: 5) ⇒ SQLiteServer2018
constructor
A new instance of SQLiteServer2018.
- #start ⇒ Object
Constructor Details
#initialize(host: 'localhost', port: '57000', cache: 5) ⇒ SQLiteServer2018
Returns a new instance of SQLiteServer2018.
77 78 79 80 81 |
# File 'lib/sqlite_server2018.rb', line 77 def initialize(host: 'localhost', port: '57000', cache: 5) @host, @port, @cache = host, port, cache end |
Instance Method Details
#start ⇒ Object
83 84 85 86 87 88 89 |
# File 'lib/sqlite_server2018.rb', line 83 def start() DRb.start_service "druby://#{@host}:#{@port}", SQLiteServer.new(cache: @cache) DRb.thread.join end |