Class: LinkedIn::People
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from LinkedIn::Base
Instance Method Details
#profiles ⇒ Object
10 11 12 13 14 15 |
# File 'lib/linked_in/people.rb', line 10 def profiles @profiles ||= @doc.xpath('//people').children.inject([]) do |list, profile| list << Profile.new(Nokogiri::XML(profile.to_xml)) unless profile.blank? list end end |