Class: RelayHelper::Weechat
- Inherits:
-
Object
- Object
- RelayHelper::Weechat
- Defined in:
- lib/weechat-relay-helper/weechat.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(host, port, ssl, compression, password) ⇒ Weechat
constructor
A new instance of Weechat.
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
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
4 5 6 |
# File 'lib/weechat-relay-helper/weechat.rb', line 4 def connection @connection end |