class Pipio::Message
A holding object for each line of the chat. It is subclassed as appropriate (eg AutoReplyMessage
). Each subclass (but not Message
itself) has its own to_s which prints out its information in a format appropriate for putting in an Adium log file.
Attributes
sender_alias[R]
sender_screen_name[R]
time[R]
Public Class Methods
new(sender_screen_name, time, sender_alias)
click to toggle source
# File lib/pipio/messages/message.rb, line 9 def initialize(sender_screen_name, time, sender_alias) @sender_screen_name = sender_screen_name @time = time @sender_alias = sender_alias end
Private Instance Methods
adium_formatted_time()
click to toggle source
# File lib/pipio/messages/message.rb, line 19 def adium_formatted_time @time.xmlschema.sub(/:00$/, "00") end