Class: ModSpox::Messages::Incoming::Welcome

Inherits:
Message
  • Object
show all
Defined in:
lib/mod_spox/messages/incoming/Welcome.rb

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, server, message, nick, username, hostname) ⇒ Welcome

Returns a new instance of Welcome.



16
17
18
19
20
21
22
23
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 16

def initialize(raw, server, message, nick, username, hostname)
    super(raw)
    @server = server
    @message = message
    @nick = nick
    @username = username
    @hostname = hostname
end

Instance Attribute Details

#hostnameObject (readonly)

hostname of the bot



15
16
17
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 15

def hostname
  @hostname
end

#messageObject (readonly)

welcome message from server



9
10
11
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 9

def message
  @message
end

#nickObject (readonly)

nick of the bot



11
12
13
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 11

def nick
  @nick
end

#serverObject (readonly)

server bot is connected to



7
8
9
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 7

def server
  @server
end

#usernameObject (readonly)

username of the bot



13
14
15
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 13

def username
  @username
end