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

- (Message) initialize(email, display_name, text)

: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

- (Object) display_name

Returns the value of attribute display_name



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

def display_name
  @display_name
end

- (Object) email

Returns the value of attribute email



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

def email
  @email
end

- (Object) text

Returns the value of attribute text



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

def text
  @text
end