Class: YAIB::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/yaib/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



5
6
7
8
9
10
11
12
13
14
# File 'lib/yaib/config.rb', line 5

def initialize
    @nick = "yaib-bot"
    @name = "yaib-bot"
    @channels = []
    @port = 6667
    @host = "arcath.net"
    @log = Logger.new("log/yaib.log", "weekly")
    @listeners = []
    @prefix = "!"
end

Instance Attribute Details

#channelsObject

Returns the value of attribute channels.



3
4
5
# File 'lib/yaib/config.rb', line 3

def channels
  @channels
end

#commandsObject

Returns the value of attribute commands.



3
4
5
# File 'lib/yaib/config.rb', line 3

def commands
  @commands
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/yaib/config.rb', line 3

def host
  @host
end

#listenersObject

Returns the value of attribute listeners.



3
4
5
# File 'lib/yaib/config.rb', line 3

def listeners
  @listeners
end

#logObject

Returns the value of attribute log.



3
4
5
# File 'lib/yaib/config.rb', line 3

def log
  @log
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/yaib/config.rb', line 3

def name
  @name
end

#nickObject

Returns the value of attribute nick.



3
4
5
# File 'lib/yaib/config.rb', line 3

def nick
  @nick
end

#passObject

Returns the value of attribute pass.



3
4
5
# File 'lib/yaib/config.rb', line 3

def pass
  @pass
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/yaib/config.rb', line 3

def port
  @port
end

#prefixObject

Returns the value of attribute prefix.



3
4
5
# File 'lib/yaib/config.rb', line 3

def prefix
  @prefix
end

#serverObject

Returns the value of attribute server.



3
4
5
# File 'lib/yaib/config.rb', line 3

def server
  @server
end