whos_using_what 1.0.9 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,14 +6,19 @@ class SimplyHiredClient
6
6
  require 'json'
7
7
  @@base_url = "http://api.linkedin.com/v1/"
8
8
  @@json_indicator = "format=json"
9
- @@number_results = 100
10
9
 
11
- def perform_search query, location
10
+ def perform_search query, location, number_results = 20, exclude_recruiters = true
11
+
12
+ recruiters_string = ""
13
+ if exclude_recruiters
14
+ recruiters_string = "/fem-employer"
15
+ end
12
16
 
13
17
  url = "http://api.simplyhired.com/a/jobs-api/xml-v2/" <<
14
18
  "q-%22" << query << "%22/" <<
15
19
  "l-" << location <<
16
- "/ws-" << @@number_results.to_s <<
20
+ "/ws-" << number_results.to_s <<
21
+ recruiters_string <<
17
22
  "?pshid=47575&ssty=2&cflg=r&jbd=hiringto.jobamatic.com"
18
23
 
19
24
  url = url.tr(" ", "+")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whos_using_what
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: