oodler 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/oodler/client.rb +25 -5
- data/lib/oodler/oodle_response.rb +5 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/oodler/client.rb
CHANGED
@@ -23,23 +23,27 @@ module Oodler
|
|
23
23
|
|
24
24
|
#client.search("chicago", {:category =>"vehicle/cars"})
|
25
25
|
def search( region, options={})
|
26
|
-
path = ""
|
27
|
-
|
28
26
|
options= {:query =>options}
|
29
27
|
options[:query].merge!({:region => region}) if region
|
30
28
|
|
31
|
-
|
29
|
+
self.listing(options)
|
32
30
|
end
|
33
31
|
|
34
32
|
#helper method - client.search_by_category("chicago", "vehicle/car")
|
35
33
|
def search_by_category(region,category, options={})
|
36
|
-
path=""
|
37
34
|
options= {:query =>options}
|
38
35
|
options[:query].merge!({:region => region}) if region
|
39
36
|
options[:query].merge!({:category => category}) if category
|
37
|
+
self.listing(options)
|
40
38
|
|
41
|
-
|
39
|
+
end
|
42
40
|
|
41
|
+
#specify the :location key for city search, i.e :location=>"Houston, Tx"
|
42
|
+
def usa_job_search(options)
|
43
|
+
options= {:query =>options}
|
44
|
+
options[:query].merge!({:region => "usa"})
|
45
|
+
options[:query].merge!({:category => "job"})
|
46
|
+
self.listing(options)
|
43
47
|
end
|
44
48
|
|
45
49
|
|
@@ -51,6 +55,22 @@ module Oodler
|
|
51
55
|
options= {:query =>options}
|
52
56
|
OodleResponse.from_xml(get(path, options))
|
53
57
|
end
|
58
|
+
|
59
|
+
def job_title_attribute(title)
|
60
|
+
"job_title_#{title}"
|
61
|
+
end
|
62
|
+
|
63
|
+
def industry_attribute(title)
|
64
|
+
"industry_#{title}"
|
65
|
+
end
|
66
|
+
|
67
|
+
def company_attribute(title)
|
68
|
+
"company_#{title}"
|
69
|
+
end
|
70
|
+
|
71
|
+
def job_type_attribute(string)
|
72
|
+
"job_type_#{title}"
|
73
|
+
end
|
54
74
|
|
55
75
|
private
|
56
76
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oodler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Hagedorn
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-04-
|
12
|
+
date: 2010-04-16 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|