Class: ModSpox::Messages::Incoming::Message
- Inherits:
-
Object
- Object
- ModSpox::Messages::Incoming::Message
- Defined in:
- lib/mod_spox/messages/incoming/Message.rb
Direct Known Subclasses
BadNick, Bounce, Created, Invite, Join, Kick, LuserChannels, LuserClient, LuserMe, LuserOp, LuserUnknown, Mode, Motd, MyInfo, Names, Nick, NickInUse, Part, Ping, Privmsg, Quit, Topic, TopicInfo, Welcome, Who, Whois, YourHost
Instance Attribute Summary collapse
-
#raw_content ⇒ Object
readonly
raw string from server.
-
#time ⇒ Object
readonly
time of message creation.
Instance Method Summary collapse
-
#initialize(content) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(content) ⇒ Message
Returns a new instance of Message.
13 14 15 16 |
# File 'lib/mod_spox/messages/incoming/Message.rb', line 13 def initialize(content) @raw_content = content @time = Time.now end |
Instance Attribute Details
#raw_content ⇒ Object (readonly)
raw string from server
8 9 10 |
# File 'lib/mod_spox/messages/incoming/Message.rb', line 8 def raw_content @raw_content end |
#time ⇒ Object (readonly)
time of message creation
11 12 13 |
# File 'lib/mod_spox/messages/incoming/Message.rb', line 11 def time @time end |