Class: LinkedIn::Connections
- Inherits:
-
Base
- Object
- Base
- LinkedIn::Connections
show all
- Defined in:
- lib/linked_in/connections.rb
Instance Attribute Summary
Attributes inherited from Base
#doc
Instance Method Summary
collapse
Methods inherited from Base
from_xml, #initialize
Constructor Details
This class inherits a constructor from LinkedIn::Base
Instance Method Details
#connections ⇒ Object
4
5
6
7
8
9
|
# File 'lib/linked_in/connections.rb', line 4
def connections
@connections ||= @doc.xpath('//connections').children.inject([]) do |list, profile|
list << Profile.new(Nokogiri::XML(profile.to_xml)) unless profile.blank?
list
end
end
|
#profiles ⇒ Object
11
12
13
|
# File 'lib/linked_in/connections.rb', line 11
def profiles
connections
end
|