Class: LinkedIn::Connections

Inherits:
Base
  • Object
show all
Defined in:
lib/linked_in/connections.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

#connectionsObject



4
5
6
7
8
9
10
11
12
# File 'lib/linked_in/connections.rb', line 4

def connections
  @array ||= begin
    @array = []
    @doc.xpath('//connections').children.each do |profile|
      @array << Profile.new(Nokogiri::XML(profile.to_xml)) unless profile.blank?
    end
    @array
  end
end

#profilesObject



14
15
16
# File 'lib/linked_in/connections.rb', line 14

def profiles
  connections
end