Class: LinkedIn::Message

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

Direct Known Subclasses

InviteMessage

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



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

def body
  @body
end

#recipientsObject

Returns the value of attribute recipients.



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

def recipients
  @recipients
end

#subjectObject

Returns the value of attribute subject.



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

def subject
  @subject
end

Instance Method Details

#to_xmlObject



6
7
8
9
10
11
12
# File 'lib/linked_in/message.rb', line 6

def to_xml
  "<mailbox-item>
    #{recipients.to_xml}
    <subject>#{subject}</subject>
    <body>#{body}</body>
  </mailbox-item>"
end