pengwynn/linkedin — pull request #133 by dmatheron (2012-08-13 20:44:08+00:00)
Title: Allow description option in LinkedIn::Client.share

LinkedIn::Client.share
================

*to_xml_helpers.rb*

```ruby
def share_to_xml(options={})
doc = Nokogiri.XML('

')
doc.encoding = 'UTF-8'

{:comment => 'comment', :title => 'title', :description => 'description', :url => 'submitted-url', :image_url => 'submitted-image-url'}.each do |key, name|
doc.at_css(name).content = options[key] if options[key]
end

doc.at_css('visibility > code').content = options[:visibility] || options[:visability] # backward-compatible typo fix
doc.to_xml
end
```