class Glman::Commands::Notify
Attributes
config[R]
irc_client[R]
irc_config[R]
nick[R]
port[R]
server[R]
ssl[R]
Public Class Methods
new(opts={})
click to toggle source
# File lib/glman/commands/notify.rb, line 8 def initialize(opts={}) @config = opts.fetch(:config) end
Public Instance Methods
channel()
click to toggle source
# File lib/glman/commands/notify.rb, line 22 def channel @channel ||= irc_config.fetch(:channel) end
send(msg)
click to toggle source
# File lib/glman/commands/notify.rb, line 12 def send(msg) irc_client.register(nick) irc_client.notify(channel, msg) client.quit end