Class: SmartFox::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/smartfox/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message, room)
  @user, @message, @room = user, message, room
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



2
3
4
# File 'lib/smartfox/message.rb', line 2

def message
  @message
end

#roomObject

Returns the value of attribute room.



2
3
4
# File 'lib/smartfox/message.rb', line 2

def room
  @room
end

#userObject

Returns the value of attribute user.



2
3
4
# File 'lib/smartfox/message.rb', line 2

def user
  @user
end