Class: Msn::Message

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

Overview

A message sent to a Messenger.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

Returns the value of attribute display_name.



4
5
6
# File 'lib/msn/message.rb', line 4

def display_name
  @display_name
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/msn/message.rb', line 3

def email
  @email
end

#textObject

Returns the value of attribute text.



5
6
7
# File 'lib/msn/message.rb', line 5

def text
  @text
end