Class: ModSpox::Messages::Incoming::Welcome
- Defined in:
- lib/mod_spox/messages/incoming/Welcome.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
hostname of the bot.
-
#message ⇒ Object
readonly
welcome message from server.
-
#nick ⇒ Object
readonly
nick of the bot.
-
#server ⇒ Object
readonly
server bot is connected to.
-
#username ⇒ Object
readonly
username of the bot.
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(raw, server, message, nick, username, hostname) ⇒ Welcome
constructor
A new instance of Welcome.
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, , nick, username, hostname) super(raw) @server = server @message = @nick = nick @username = username @hostname = hostname end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
hostname of the bot
15 16 17 |
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 15 def hostname @hostname end |
#message ⇒ Object (readonly)
welcome message from server
9 10 11 |
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 9 def @message end |
#nick ⇒ Object (readonly)
nick of the bot
11 12 13 |
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 11 def nick @nick end |
#server ⇒ Object (readonly)
server bot is connected to
7 8 9 |
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 7 def server @server end |
#username ⇒ Object (readonly)
username of the bot
13 14 15 |
# File 'lib/mod_spox/messages/incoming/Welcome.rb', line 13 def username @username end |