Method: HomeQ::CP::Server#initialize
- Defined in:
- lib/homeq/cp/server.rb
#initialize(host = nil, port = nil) ⇒ Server
Returns a new instance of Server.
47 48 49 50 51 |
# File 'lib/homeq/cp/server.rb', line 47 def initialize(host=nil, port=nil) @host = host || DEFAULT_HOST @port = port || DEFAULT_PORT @connections = [] end |