Class: LinkedIn::People
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 16 17 18 |
# File 'lib/linked_in/people.rb', line 10 def profiles @array ||= begin @array = [] @doc.xpath('//people').children.each do |profile| @array << Profile.new(Nokogiri::XML(profile.to_xml)) unless profile.blank? end @array end end |