Class: CampfireChat::Message
- Inherits:
-
Object
- Object
- CampfireChat::Message
- Defined in:
- lib/campfire_chat/message.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(raw_message) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(raw_message) ⇒ Message
Returns a new instance of Message.
4 5 6 7 8 |
# File 'lib/campfire_chat/message.rb', line 4 def initialize() @author = .user.name @body = .body @id = .id end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
3 4 5 |
# File 'lib/campfire_chat/message.rb', line 3 def @author end |
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/campfire_chat/message.rb', line 3 def body @body end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/campfire_chat/message.rb', line 3 def id @id end |