Class: Settlers::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/settlers/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(address) ⇒ Client

Returns a new instance of Client.



3
4
5
# File 'lib/settlers/client.rb', line 3

def initialize(address)
  @address = address
end

Instance Method Details

#startObject



7
8
9
# File 'lib/settlers/client.rb', line 7

def start
  Java.client.run(@address.host, @address.port)
end