Class: LinkedIn::InviteMessage
Instance Attribute Summary
Attributes inherited from Message
#body, #recipients, #subject
Instance Method Summary
collapse
Instance Method Details
#to_xml ⇒ Object
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/linked_in/message.rb', line 31
def to_xml
invitation_type = "friend"
"<mailbox-item>
#{recipients.to_xml}
<subject>#{subject}</subject>
<body>#{body}</body>
<item-content>
<invitation-request>
<connect-type>#{invitation_type}</connect-type>
</invitation-request>
</item-content>
</mailbox-item>"
end
|