Class: SmartFox::Message
- Inherits:
-
Object
- Object
- SmartFox::Message
- Defined in:
- lib/smartfox/message.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#room ⇒ Object
Returns the value of attribute room.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user, message, room) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(user, message, room) ⇒ Message
Returns a new instance of Message.
4 5 6 |
# File 'lib/smartfox/message.rb', line 4 def initialize(user, , room) @user, @message, @room = user, , room end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
2 3 4 |
# File 'lib/smartfox/message.rb', line 2 def @message end |
#room ⇒ Object
Returns the value of attribute room.
2 3 4 |
# File 'lib/smartfox/message.rb', line 2 def room @room end |
#user ⇒ Object
Returns the value of attribute user.
2 3 4 |
# File 'lib/smartfox/message.rb', line 2 def user @user end |