Class: IRC::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/on_irc/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server, prefix, command, params) ⇒ Event

Returns a new instance of Event.



5
6
7
8
9
10
# File 'lib/on_irc/event.rb', line 5

def initialize(server, prefix, command, params)
  @server = server
  @sender = Sender.new(prefix)
  @command = command
  @params = params
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



3
4
5
# File 'lib/on_irc/event.rb', line 3

def command
  @command
end

#paramsObject

Returns the value of attribute params.



3
4
5
# File 'lib/on_irc/event.rb', line 3

def params
  @params
end

#senderObject

Returns the value of attribute sender.



3
4
5
# File 'lib/on_irc/event.rb', line 3

def sender
  @sender
end

#serverObject

Returns the value of attribute server.



3
4
5
# File 'lib/on_irc/event.rb', line 3

def server
  @server
end