Class: Jabbot::Bot::Message
- Inherits:
-
Struct
- Object
- Struct
- Jabbot::Bot::Message
- Defined in:
- lib/jabbot/bot.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
-
#time ⇒ Object
Returns the value of attribute time.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text
14 15 16 |
# File 'lib/jabbot/bot.rb', line 14 def text @text end |
#time ⇒ Object
Returns the value of attribute time
14 15 16 |
# File 'lib/jabbot/bot.rb', line 14 def time @time end |
#user ⇒ Object
Returns the value of attribute user
14 15 16 |
# File 'lib/jabbot/bot.rb', line 14 def user @user end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/jabbot/bot.rb', line 15 def to_s "#{user}: #{text}" end |