linkedin 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/linked_in/education.rb +6 -2
- data/lib/linked_in/profile.rb +7 -0
- data/test/client_test.rb +6 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/lib/linked_in/education.rb
CHANGED
@@ -5,7 +5,11 @@ module LinkedIn
|
|
5
5
|
xml_reader :id
|
6
6
|
xml_reader :school_name
|
7
7
|
xml_reader :degree
|
8
|
-
xml_reader :
|
9
|
-
xml_reader :
|
8
|
+
xml_reader :field_of_study
|
9
|
+
xml_reader :activities
|
10
|
+
xml_reader :start_year, :from => "start-date/year", :as => Integer
|
11
|
+
xml_reader :start_month, :from => "start-date/month", :as => Integer
|
12
|
+
xml_reader :end_year, :from => "end-date/year", :as => Integer
|
13
|
+
xml_reader :end_month, :from => "end-date/month", :as => Integer
|
10
14
|
end
|
11
15
|
end
|
data/lib/linked_in/profile.rb
CHANGED
@@ -15,11 +15,18 @@ module LinkedIn
|
|
15
15
|
xml_reader :current_status_timestamp
|
16
16
|
xml_reader :connections, :as => [Profile]
|
17
17
|
xml_reader :summary
|
18
|
+
xml_reader :specialties
|
19
|
+
xml_reader :proposal_comments
|
20
|
+
xml_reader :associations
|
21
|
+
xml_reader :honors
|
22
|
+
xml_reader :interests
|
18
23
|
xml_reader :positions, :as => [Position]
|
19
24
|
xml_reader :education, :as => [Education]
|
25
|
+
xml_reader :three_current_positions, :as => [Position]
|
20
26
|
xml_reader :member_url_resources, :as => [UrlResource], :from => 'member-url-resources/member-url'
|
21
27
|
xml_reader :api_standard_profile_request
|
22
28
|
xml_reader :site_standard_profile_request, :as => ApiStandardProfileRequest
|
23
29
|
xml_reader :picture_url
|
30
|
+
|
24
31
|
end
|
25
32
|
end
|
data/test/client_test.rb
CHANGED
@@ -23,6 +23,12 @@ class ClientTest < Test::Unit::TestCase
|
|
23
23
|
hp.start_year.should == 2004
|
24
24
|
hp.end_month.should == 6
|
25
25
|
hp.end_year.should == 2007
|
26
|
+
|
27
|
+
education = p.education.first
|
28
|
+
education.start_month.should == 8
|
29
|
+
education.start_year.should == 1994
|
30
|
+
education.end_month.should == 5
|
31
|
+
education.end_year.should == 1998
|
26
32
|
end
|
27
33
|
|
28
34
|
should "retrieve a profile for a member by id" do
|