zohoho 0.2.4 → 0.2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -0
- data/lib/zohoho/recruit.rb +4 -4
- data/zohoho.gemspec +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/zohoho/recruit.rb
CHANGED
@@ -20,15 +20,15 @@ module Zohoho
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def get_candidates(conditions = {})
|
23
|
-
(@type == 'json' ? JSON.parse(self.class.get(candidates_url
|
23
|
+
(@type == 'json' ? JSON.parse(self.class.get(candidates_url+"&#{conditions.to_params}")) : Nokogiri::XML.parse(self.class.get(candidates_url, conditions)))
|
24
24
|
end
|
25
25
|
|
26
26
|
def candidates(conditions = {})
|
27
|
-
@candidates ||= get_candidates
|
27
|
+
@candidates ||= get_candidates(conditions)
|
28
28
|
end
|
29
29
|
|
30
|
-
def get_parsed_candidates(conditions = {:toIndex => 200})
|
31
|
-
raw_candidates = candidates
|
30
|
+
def get_parsed_candidates(conditions = {:fromIndex => 1, :toIndex => 200})
|
31
|
+
raw_candidates = candidates(conditions)
|
32
32
|
@candidates = raw_candidates["response"]["result"]["Candidates"]["row"]
|
33
33
|
|
34
34
|
#extracts the relevant data
|
data/zohoho.gemspec
CHANGED