Method: HWPing::Config#initialize
- Defined in:
- lib/hwping/config.rb
#initialize(hash = {}) ⇒ Config
Returns a new instance of Config.
11 12 13 14 15 16 17 18 |
# File 'lib/hwping/config.rb', line 11 def initialize(hash = {}) @server = hash.fetch('server', 'irc.freenode.net') @port = hash.fetch('port', 6667) @nick = hash.fetch('nick', 'hwping') @channels = hash.fetch('channels', ['hwping-test']) @auth = hash.fetch('auth' , []) @targets = hash.fetch('targets', []) end |