Class: RelayHelper::Weechat

Inherits:
Object
  • Object
show all
Defined in:
lib/weechat-relay-helper/weechat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, port, ssl, compression, password) ⇒ Weechat

Returns a new instance of Weechat.



5
6
7
8
9
# File 'lib/weechat-relay-helper/weechat.rb', line 5

def initialize host, port, ssl, compression, password
  @connection = Connection.new(host, port, ssl)
  @connection.open
  @connection.puts "init#{" password=#{password}," if password}compression=#{compression ? 'zlib' : 'off'}"
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



4
5
6
# File 'lib/weechat-relay-helper/weechat.rb', line 4

def connection
  @connection
end