Class: ModSpox::Messages::Incoming::Motd

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

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, motd, server) ⇒ Motd

Returns a new instance of Motd.



10
11
12
13
14
# File 'lib/mod_spox/messages/incoming/Motd.rb', line 10

def initialize(raw, motd, server)
    super(raw)
    @motd = motd
    @server = server
end

Instance Attribute Details

#motdObject (readonly)

Message of the day



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

def motd
  @motd
end

#serverObject (readonly)

Server message is from



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

def server
  @server
end