Class: Msn::Message
- Inherits:
-
Object
- Object
- Msn::Message
- Defined in:
- lib/msn/message.rb
Overview
A message sent to a Messenger.
Instance Attribute Summary collapse
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#email ⇒ Object
Returns the value of attribute email.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(email, display_name, text) ⇒ Message
constructor
:nodoc:.
Constructor Details
#initialize(email, display_name, text) ⇒ Message
:nodoc:
8 9 10 11 12 |
# File 'lib/msn/message.rb', line 8 def initialize(email, display_name, text) @email = email @display_name = display_name @text = text end |
Instance Attribute Details
#display_name ⇒ Object
Returns the value of attribute display_name.
4 5 6 |
# File 'lib/msn/message.rb', line 4 def display_name @display_name end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/msn/message.rb', line 3 def email @email end |
#text ⇒ Object
Returns the value of attribute text.
5 6 7 |
# File 'lib/msn/message.rb', line 5 def text @text end |