Sha256: adcc86b032aa20b62b3ba5f07ef24b3dfa226afea60bcd94b741724d646aabdb
Contents?: true
Size: 1.49 KB
Versions: 3
Compression:
Stored size: 1.49 KB
Contents
module LinkedIn class Profile < LinkedIn::Base # xml_reader :three_current_positions, :as => [Position] PROFILE_FIELDS = %w[id first_name last_name headline industry current_status current_status_timestamp summary specialties proposal_comments associations honors interests picture_url distance num_recommenders public_profile_url] PROFILE_FIELDS.each do |f| define_method(f.to_sym) do @doc.xpath("./person/#{f.gsub(/_/,'-')}").text end end def location @location ||= Location.new(@doc) end def api_standard_profile_request @api_standard ||= ApiStandardProfileRequest.new(@doc.xpath('./person/api-standard-profile-request')) end def site_standard_profile_request @doc.xpath('//site-standard-profile-request/url').text end def relation_to_viewer @doc.xpath('//relation-to-viewer/distance').text end def member_url_resources @url_resources ||= UrlResource.new(@doc.xpath('//member-url-resources')).resources end def positions @positions ||= Position.new(@doc.xpath('//positions')).positions end def education @education ||= Education.new(@doc.xpath('//educations')).education end def connections @connections ||= Connections.new(@doc.xpath('//connections')).connections end def groups @groups ||= Group.new(@doc.xpath('//member-groups')).groups end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
linkedin-idkmybffjill-0.2.3 | lib/linked_in/profile.rb |
linkedin-idkmybffjill-0.2.2 | lib/linked_in/profile.rb |
linkedin-idkmybffjill-0.2.1 | lib/linked_in/profile.rb |