Class: LinkedIn::People
- Inherits:
-
Base
- Object
- Base
- LinkedIn::People
show all
- Defined in:
- lib/linked_in/people.rb
Instance Method Summary
collapse
Methods inherited from Base
from_xml, #initialize
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
|