Class: Hubeye::Client::Client

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

Constant Summary collapse

@@stty_save =
`stty -g`

Instance Method Summary collapse

Constructor Details

#initialize(debug = false) ⇒ Client

Returns a new instance of Client.



20
21
22
# File 'lib/hubeye/client/client.rb', line 20

def initialize(debug=false)
  @debug = debug
end

Instance Method Details

#start(host, port) ⇒ Object



24
25
26
27
28
29
# File 'lib/hubeye/client/client.rb', line 24

def start(host, port)
  conn = Connection.new(host, port)
  conn.receive_welcome
  @s = conn.s
  interact
end