Class: Jabbot::Message
- Inherits:
-
Struct
- Object
- Struct
- Jabbot::Message
- Defined in:
- lib/jabbot/message.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
2 3 4 |
# File 'lib/jabbot/message.rb', line 2 def text @text end |
#time ⇒ Object
Returns the value of attribute time
2 3 4 |
# File 'lib/jabbot/message.rb', line 2 def time @time end |
#user ⇒ Object
Returns the value of attribute user
2 3 4 |
# File 'lib/jabbot/message.rb', line 2 def user @user end |
Instance Method Details
#to_s ⇒ Object
3 4 5 |
# File 'lib/jabbot/message.rb', line 3 def to_s "#{user}: #{text}" end |