oodler 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -9,6 +9,7 @@ module Oodler
9
9
  xml_reader :stat, :from => :attr
10
10
  xml_reader :error
11
11
  xml_reader :total, :in =>"meta"
12
+ xml_reader :refinements, :as =>Refinements
12
13
 
13
14
 
14
15
  def listings
@@ -0,0 +1,8 @@
1
+ module Oodler
2
+ class Refinement
3
+ include ROXML
4
+ xml_name :element
5
+ xml_reader :name
6
+ xml_reader :values, :as => [RefinementValue], :in =>"values"
7
+ end
8
+ end
@@ -0,0 +1,9 @@
1
+ module Oodler
2
+ class RefinementValue
3
+ include ROXML
4
+ xml_name :element
5
+ xml_reader :name
6
+ xml_reader :count
7
+ xml_reader :id
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module Oodler
2
+
3
+
4
+ class Refinements
5
+ include ROXML
6
+ xml_accessor :values, :as =>[Refinement], :in =>"attributes"
7
+ end
8
+
9
+ end
data/lib/oodler.rb CHANGED
@@ -54,6 +54,10 @@ module Oodler
54
54
  end
55
55
 
56
56
  directory = File.expand_path(File.dirname(__FILE__))
57
+
58
+ require File.join(directory, "oodler", 'refinement_value')
59
+ require File.join(directory, "oodler", 'refinement')
60
+ require File.join(directory, "oodler", 'refinements')
57
61
  require File.join(directory, "oodler", 'category')
58
62
  require File.join(directory, "oodler", 'region')
59
63
  require File.join(directory, 'oodler', 'web_client')
data/test/client_test.rb CHANGED
@@ -141,6 +141,15 @@ class ClientTest < Test::Unit::TestCase
141
141
 
142
142
  end
143
143
 
144
+ should "appropriately parse refinements " do
145
+ stub_get("/api/v2/listings?attributes=job_title_software_engineer&region=usa&key=key&category=job", "refinement.xml")
146
+ p = @oodler.usa_job_search(:attributes => "job_title_software_engineer")
147
+ p.refinements.values.should_not be_empty
148
+ p.refinements.values[0].name.should == "Job Title"
149
+
150
+
151
+ end
152
+
144
153
 
145
154
 
146
155
 
@@ -0,0 +1,648 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <oodle_response stat="ok">
3
+ <current>
4
+ <region>
5
+ <id>usa</id>
6
+ <name>United States</name>
7
+ </region>
8
+ <category>
9
+ <id>job/energy</id>
10
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
11
+ <abbrev>Oil/Energy/Power</abbrev>
12
+ </category>
13
+ <location>
14
+ <arg>Houston</arg>
15
+ <centerpoint>
16
+ <latitude>29.7721</latitude>
17
+ <longitude>-95.4348</longitude>
18
+ </centerpoint>
19
+ <radius>30</radius>
20
+ </location>
21
+ <refinements>full</refinements>
22
+ <start>1</start>
23
+ <num>10</num>
24
+ </current>
25
+ <listings>
26
+ <element>
27
+ <id>1914568154</id>
28
+ <title>Warranty Operations/Field Eng. Management</title>
29
+ <body>Company Siemens Energy, Inc. Division SEI - Renewable Energy, Wind Power Functional Area FS - Field Service Location TX - Houston Job Type Regular Job Time Full-Time Experience Level Mid Level Required Education Bachelors Degree Required Travel 50% Company Description Siemens Energy is the world’s leading supplier of a complete spectrum of products, services and solutions for the generation, transmission and distribution of power and for the extraction, conversion and transport of oil and gas. In fiscal 2007 (ended September 30, based on IFRS), the Energy Sector had revenues of approximately EUR20 billion and received new orders totaling around EUR28 billion and posted a profit of EUR1.8 billion. Siemens Energy had a work force of 73,500 at the beginning of fiscal 2008. </body>
30
+ <url>http://jobs.oodle.com/u_a2xx_/1914568154-P1u1089,19-8D32DE3F300E/jobs.oodle.com___3gwMpw641M35FPpPvJgjgTLhh_6eYGDCpW2rKDOKXPMCnZtGGQQk_trO7aoIprAxlFsi-Pv1FmMYubWed8UiHFrHEzw8yGimBRxh_IDOhdxMTTQqZmyorVyhFrrYq7EG</url>
31
+ <category>
32
+ <id>job/energy</id>
33
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
34
+ </category>
35
+ <source>
36
+ <id>www</id>
37
+ <name>Oodle</name>
38
+ </source>
39
+ <location>
40
+ <latitude>29.7721004</latitude>
41
+ <longitude>-95.4347992</longitude>
42
+ <zip>77001</zip>
43
+ <citycode>usa:tx:houston</citycode>
44
+ <name>Houston</name>
45
+ <state>TX</state>
46
+ <country>USA</country>
47
+ </location>
48
+ <images />
49
+ <ctime>1271946560</ctime>
50
+ <paid>No</paid>
51
+ <revenue_score>0</revenue_score>
52
+ <similar_url>http://jobs.oodle.com/manager/careers/oil-gas-solar-power-jobs/?inbs=1</similar_url>
53
+ <attributes>
54
+ <company>Siemens Wind Energy</company>
55
+ <employee_type>Full Time</employee_type>
56
+ <fee>No</fee>
57
+ <full_time>Full Time</full_time>
58
+ <job_title>Manager</job_title>
59
+ <user_id>17528517</user_id>
60
+ </attributes>
61
+ </element>
62
+ <element>
63
+ <id>1913927391</id>
64
+ <title>Director</title>
65
+ <body>Job Responsibilities and Requirements: Director of Underwriting Practices,Renewable Energy Practice, Industry Markets About The HartfordThe Hartford is one of the oldest and largest investment and insurance companies in the United States. Founded in 1810, The Hartford is a leading provider of automobile and homeowners products, business insurance, investment products, life insurance, and group &amp; employee benefits. Recognized for the diversity of its product portfolio and distribution networks, The Hartford serves customers through independent agents and brokers, financial institutions, affinity groups and via the Internet. Approximately 11,000 independent agencies and more than 100,000 registered broker/dealers sell the company&apos;s products. The company has approximately 30,000 employees in the U.S. and serves customers worldwide. At year end 2008, total assets and total stockholders&apos; equity of The Hartford were $287.6 billion and $9.3 billion, respectively.</body>
66
+ <url>http://jobs.oodle.com/u_a2xx_/1913927391-P1u1089,19-8D32DE3F300E/jobs.oodle.com___hvfZISif4Nr5FPpPvJgjgTLhh_6eYGDCLP7_OEbLeOV9lAXXyyPn5pjgLEia1whgTE00KmZsqK1coRa62KuxBg,,</url>
67
+ <category>
68
+ <id>job/energy</id>
69
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
70
+ </category>
71
+ <source>
72
+ <id>www</id>
73
+ <name>Oodle</name>
74
+ </source>
75
+ <location>
76
+ <latitude>29.7721004</latitude>
77
+ <longitude>-95.4347992</longitude>
78
+ <citycode>usa:tx:houston</citycode>
79
+ <name>Houston</name>
80
+ <state>TX</state>
81
+ <country>USA</country>
82
+ </location>
83
+ <images />
84
+ <ctime>1271921349</ctime>
85
+ <paid>No</paid>
86
+ <revenue_score>0</revenue_score>
87
+ <similar_url>http://jobs.oodle.com/director/careers/oil-gas-solar-power-jobs/?inbs=1</similar_url>
88
+ <attributes>
89
+ <company>Energycrossing</company>
90
+ <employee_type>Employee</employee_type>
91
+ <fee>No</fee>
92
+ <full_time>Full Time</full_time>
93
+ <job_title>Director</job_title>
94
+ <user_id>15583607</user_id>
95
+ </attributes>
96
+ </element>
97
+ <element>
98
+ <id>1913937454</id>
99
+ <title>Senior Level Deepwater Drilling Technologist</title>
100
+ <body>Job Responsibilities and Requirements: Drilling and Completions at ChevronChevron holds strategic positions in some of the world largest and most productive oil and gas regions. The approximately 1,400 people in the Drilling &amp; Completions (D&amp;C) team work in some of the world most challenging technical and operating environments. The D&amp;C Clear Leader philosophy provides a passion for safety and environmental protection, leadership for the development of new and innovative drilling and completions technology, and a commitment to the education and development of our workforce. Chevron North America Exploration and Production Company, a division of Chevron U.S.A. is accepting online applications for the position of a Senior Level Deepwater Drilling Technologist (Technologist CL 84), located in Houston, Texas. OverviewThe Deepwater Drilling Technologist position is part of Chevron Global Deepwater Drilling Group and will support the Deepwater Exploration and Projects Strategic Business Unit in Houston, Texas.</body>
101
+ <url>http://jobs.oodle.com/u_a2xx_/1913937454-P1u1089,19-8D32DE3F300E/jobs.oodle.com___4Twm980z9XL5FPpPvJgjgTLhh_6eYGDCkiA7T__ccMtpT-0ToEPjYN5vpfPXRh-U-fNSxnlqButhLtaY_Ha008TRGZ1hbCR8uMeVqp69yJylYWa4j0v7Ef4Aos5C3Ynz</url>
102
+ <category>
103
+ <id>job/energy</id>
104
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
105
+ </category>
106
+ <source>
107
+ <id>www</id>
108
+ <name>Oodle</name>
109
+ </source>
110
+ <location>
111
+ <latitude>29.7721004</latitude>
112
+ <longitude>-95.4347992</longitude>
113
+ <citycode>usa:tx:houston</citycode>
114
+ <name>Houston</name>
115
+ <state>TX</state>
116
+ <country>USA</country>
117
+ </location>
118
+ <images />
119
+ <ctime>1271921953</ctime>
120
+ <paid>No</paid>
121
+ <revenue_score>0</revenue_score>
122
+ <similar_url>http://jobs.oodle.com/senior_level_deepwater/careers/oil-gas-solar-power-jobs/?inbs=1</similar_url>
123
+ <attributes>
124
+ <company>Oilandgascrossing</company>
125
+ <employee_type>Employee</employee_type>
126
+ <fee>No</fee>
127
+ <full_time>Full Time</full_time>
128
+ <job_title>Senior Level Deepwater</job_title>
129
+ <user_id>15583607</user_id>
130
+ </attributes>
131
+ </element>
132
+ <element>
133
+ <id>1897131455</id>
134
+ <title>Independent Energy Consultants</title>
135
+ <body>Who do you know that uses electricity or natural gas? Do you think they would like to pay less for those services? How would you like to make a recurring income by showing people how to save money on their energy bills every month? Electricity is a service everyone needs and already uses. You can choose your energy provider, so why pay more? You can create a recurring monthly income with Ambit Energy. With guaranteed lower prices, no switching fees, and free rewards, Ambit Energy will sell itself. You just have to get the word out. Be open to change and invest in yourself. It is time to seize your destiny and get ahead financially. Free online training and support will enable you to find the path to your dreams by building a recession-proof income. This is a real opportunity if you are willing to work for it. Come join our growing team and power your future. Visit my website to learn more. Www.oldsenergy.energy526.com</body>
136
+ <url>http://jobs.oodle.com/u_a2xx_/1897131455-P1u1089,19-8D32DE3F300E/jobs.oodle.com___YUhBq4Bsb-75FPpPvJgjgTLhh_6eYGDCjTuAR9kGd7OVUMO2EPckUOrzqdSCZERFM67LDCePUWbU69ntltDYbm5JmBbe7FbA18K_n6Hnwp_k0T5eHhUFXg,,</url>
137
+ <category>
138
+ <id>job/energy</id>
139
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
140
+ </category>
141
+ <source>
142
+ <id>www</id>
143
+ <name>Oodle</name>
144
+ </source>
145
+ <location>
146
+ <latitude>29.5035000</latitude>
147
+ <longitude>-95.0922012</longitude>
148
+ <citycode>usa:tx:leaguecity</citycode>
149
+ <name>League City</name>
150
+ <state>TX</state>
151
+ <country>USA</country>
152
+ </location>
153
+ <images />
154
+ <ctime>1271888789</ctime>
155
+ <paid>No</paid>
156
+ <revenue_score>0</revenue_score>
157
+ <similar_url>http://jobs.oodle.com/consultant/careers/oil-gas-solar-power-jobs/?inbs=1</similar_url>
158
+ <attributes>
159
+ <company>Ambit Energy</company>
160
+ <employee_type>Part Time</employee_type>
161
+ <fee>No</fee>
162
+ <full_time>Full Time</full_time>
163
+ <job_title>Consultant</job_title>
164
+ <user_id>14702277</user_id>
165
+ </attributes>
166
+ </element>
167
+ <element>
168
+ <id>1912040749</id>
169
+ <title>Occupation Health &amp; Hygiene Manager</title>
170
+ <body>Job Responsibilities : Medical assessment standards and processesMedical care and injury / illness case managementSet minimum standards for medical providersSet minimum qualifications and experience for site-based Medical professionalsManage the Global drug and alcohol testing programOccupational Hygiene standards and processesAnalysis and reporting of key performance measures for occupational health and hygieneMonitoring compliance with occupational health and hygiene requirements across PetroleumValidate Petroleum Occupational and Hygiene data prior to issueEnsure compliance with, and provide advice on, OSHA injury classification and reportingManage Houston office medical clinic. Job Requirements : 10 years experience in the oil and gas industryExperience implementing and managing drug and alcohol testing processesAssurance activities (Audits and Reviews)Strong written and verbal communication with excellent influencing skillsWell developed interpersonal skills. </body>
171
+ <url>http://jobs.oodle.com/u_a2xx_/1912040749-P1u1089,19-8D32DE3F300E/jobs.oodle.com___saoHFRWavir5FPpPvJgjgTLhh_6eYGDC8Xsmb0IOFXqTMWxSZ_AUtAWPLMSVFGu13RzIA9x35PCOlK72iQLQU5W0qcWQBps6T94UEcU2Mw5H90_TnKpk-g,,</url>
172
+ <category>
173
+ <id>job/energy</id>
174
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
175
+ </category>
176
+ <source>
177
+ <id>www</id>
178
+ <name>Oodle</name>
179
+ </source>
180
+ <location>
181
+ <latitude>29.7721004</latitude>
182
+ <longitude>-95.4347992</longitude>
183
+ <citycode>usa:tx:houston</citycode>
184
+ <name>Houston</name>
185
+ <state>TX</state>
186
+ <country>USA</country>
187
+ </location>
188
+ <images />
189
+ <ctime>1271840913</ctime>
190
+ <paid>No</paid>
191
+ <revenue_score>0</revenue_score>
192
+ <similar_url>http://jobs.oodle.com/manager/careers/oil-gas-solar-power-jobs/?inbs=1</similar_url>
193
+ <attributes>
194
+ <company>Hound</company>
195
+ <employee_type>Full Time</employee_type>
196
+ <fee>No</fee>
197
+ <full_time>Full Time</full_time>
198
+ <job_title>Manager</job_title>
199
+ <user_id>19145216</user_id>
200
+ </attributes>
201
+ </element>
202
+ <element>
203
+ <id>1911599632</id>
204
+ <title>Consultant</title>
205
+ <body>GO TO http://tbrown44.joinambit.com SAVE money</body>
206
+ <url>http://jobs.oodle.com/u_a2xx_/1911599632-P26u1089,19-8D32DE3F300E/jobs.oodle.com___J4mdmg4LfQf5FPpPvJgjgTLhh_6eYGDCuKXzQAuf38-Iy4ChO2_ckJHZSuAZLz6h_K3D0p1c9FNMTTQqZmyorVyhFrrYq7EG</url>
207
+ <category>
208
+ <id>job/energy</id>
209
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
210
+ </category>
211
+ <source>
212
+ <id>myspace</id>
213
+ <name>Classifieds for MySpace</name>
214
+ </source>
215
+ <location>
216
+ <latitude>29.6858006</latitude>
217
+ <longitude>-95.5865021</longitude>
218
+ <zip>77082</zip>
219
+ <citycode>usa:tx:houston:alief</citycode>
220
+ <name>Houston (Alief)</name>
221
+ <state>TX</state>
222
+ <country>USA</country>
223
+ </location>
224
+ <images />
225
+ <ctime>1271818938</ctime>
226
+ <paid>No</paid>
227
+ <revenue_score>0</revenue_score>
228
+ <similar_url>http://jobs.oodle.com/consultant/careers/oil-gas-solar-power-jobs/?inbs=1</similar_url>
229
+ <attributes>
230
+ <company>Ambit Energy</company>
231
+ <employee_type>Contractor</employee_type>
232
+ <fee>No</fee>
233
+ <full_time>Full Time</full_time>
234
+ <job_title>Consultant</job_title>
235
+ <user_id>15052902</user_id>
236
+ </attributes>
237
+ </element>
238
+ <element>
239
+ <id>1908659523</id>
240
+ <title>Mgr Proposals Ii</title>
241
+ <body>Job Responsibilities:This position manages the group tasked with generating the technical proposals in support of the Cameron Shales products. Either directly or through subordinates, the Proposals Manager-High Spec provides equipment and system process designs and other technical information for proposals and also supplies information and support for cross-Product Lines projects (Integrated Projects). As the Proposals Manager, the individual is responsible for the following, either directly or through subordinates Concise definition of the project scope of work Successful completion of technical portion of proposalsProcess design of equipment for proposals Verification of process design of equipment for in-house projects Development of proposal P&amp;ID&apos;s, and review of in-house project P&amp;ID&apos;s Establish process design requirements for purchased equipment</body>
242
+ <url>http://jobs.oodle.com/u_a2xx_/1908659523-P1u1089,19-8D32DE3F300E/jobs.oodle.com___J4mdmg4LfQf5FPpPvJgjgTLhh_6eYGDCDO6FfwU6o-k1LycLGnK9aTQBp2FGB3L0e771cb9qIrdMTTQqZmyorVyhFrrYq7EG</url>
243
+ <category>
244
+ <id>job/energy</id>
245
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
246
+ </category>
247
+ <source>
248
+ <id>www</id>
249
+ <name>Oodle</name>
250
+ </source>
251
+ <location>
252
+ <latitude>29.7721004</latitude>
253
+ <longitude>-95.4347992</longitude>
254
+ <citycode>usa:tx:houston</citycode>
255
+ <name>Houston</name>
256
+ <state>TX</state>
257
+ <country>USA</country>
258
+ </location>
259
+ <images />
260
+ <ctime>1271657888</ctime>
261
+ <paid>No</paid>
262
+ <revenue_score>0</revenue_score>
263
+ <similar_url>http://jobs.oodle.com/manager/careers/oil-gas-solar-power-jobs/?inbs=1</similar_url>
264
+ <attributes>
265
+ <company>Houstonmetrocrossing</company>
266
+ <employee_type>Employee</employee_type>
267
+ <fee>No</fee>
268
+ <full_time>Full Time</full_time>
269
+ <job_title>Manager</job_title>
270
+ <user_id>15583607</user_id>
271
+ </attributes>
272
+ </element>
273
+ <element>
274
+ <id>1908641970</id>
275
+ <title>Mgr Proposals Ii</title>
276
+ <body>Job Responsibilities:This position manages the group tasked with generating the technical proposals in support of the Cameron Shales products. Either directly or through subordinates, the Proposals Manager-High Spec provides equipment and system process designs and other technical information for proposals and also supplies information and support for cross-Product Lines projects (Integrated Projects). As the Proposals Manager, the individual is responsible for the following, either directly or through subordinates Concise definition of the project scope of work Successful completion of technical portion of proposalsProcess design of equipment for proposals Verification of process design of equipment for in-house projects Development of proposal P&amp;ID&apos;s, and review of in-house project P&amp;ID&apos;s Establish process design requirements for purchased equipment</body>
277
+ <url>http://jobs.oodle.com/u_a2xx_/1908641970-P1u1089,19-8D32DE3F300E/jobs.oodle.com___J4mdmg4LfQf5FPpPvJgjgTLhh_6eYGDCDO6FfwU6o-k1LycLGnK9aTQBp2FGB3L0Nv2PkvQ9ByFMTTQqZmyorVyhFrrYq7EG</url>
278
+ <category>
279
+ <id>job/energy</id>
280
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
281
+ </category>
282
+ <source>
283
+ <id>www</id>
284
+ <name>Oodle</name>
285
+ </source>
286
+ <location>
287
+ <latitude>29.7721004</latitude>
288
+ <longitude>-95.4347992</longitude>
289
+ <citycode>usa:tx:houston</citycode>
290
+ <name>Houston</name>
291
+ <state>TX</state>
292
+ <country>USA</country>
293
+ </location>
294
+ <images />
295
+ <ctime>1271655550</ctime>
296
+ <paid>No</paid>
297
+ <revenue_score>0</revenue_score>
298
+ <similar_url>http://jobs.oodle.com/manager/careers/oil-gas-solar-power-jobs/?inbs=1</similar_url>
299
+ <attributes>
300
+ <company>Oilandgascrossing</company>
301
+ <employee_type>Employee</employee_type>
302
+ <fee>No</fee>
303
+ <full_time>Full Time</full_time>
304
+ <job_title>Manager</job_title>
305
+ <user_id>15583607</user_id>
306
+ </attributes>
307
+ </element>
308
+ <element>
309
+ <id>1906102897</id>
310
+ <title>Operations Engineer</title>
311
+ <body>Job Responsibilities : This support shall be in the nature of:(Support) Providing technical guidance and a single point contact to District operations personnel. (Support) Provide estimates, design review, encroachment policy requirements and coordination on encroachment projects within the Division(Optimization) Optimization support of the utilization of major asset components, and support of business development function of Transportation, value chain optimization support and interface with and support the Logistics Optimization Team(Environmental) Own the Division Spill Prevention Plan tracking and identification spreadsheet for Division Spill Prevention Plan(Asset Integrity/Risk Management) Supporting PIR personnel and Operations management in the establishment of system maintenance plans and guidelines to maximize asset integrity and minimizing risk</body>
312
+ <url>http://jobs.oodle.com/u_a2xx_/1906102897-P1u1089,19-8D32DE3F300E/jobs.oodle.com___iOSrhvTFtMf5FPpPvJgjgTLhh_6eYGDCEUl1YNr-onJ2RZtOAwyqrPlSDTy-6EwECxg7T8zaJodvD0AINawDurKin9KM7Xwm</url>
313
+ <category>
314
+ <id>job/energy</id>
315
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
316
+ </category>
317
+ <source>
318
+ <id>www</id>
319
+ <name>Oodle</name>
320
+ </source>
321
+ <location>
322
+ <latitude>29.7721004</latitude>
323
+ <longitude>-95.4347992</longitude>
324
+ <citycode>usa:tx:houston</citycode>
325
+ <name>Houston</name>
326
+ <state>TX</state>
327
+ <country>USA</country>
328
+ </location>
329
+ <images />
330
+ <ctime>1271483765</ctime>
331
+ <paid>No</paid>
332
+ <revenue_score>0</revenue_score>
333
+ <similar_url>http://jobs.oodle.com/engineer/careers/oil-gas-solar-power-jobs/?inbs=1</similar_url>
334
+ <attributes>
335
+ <company>Hound</company>
336
+ <employee_type>Full Time</employee_type>
337
+ <fee>No</fee>
338
+ <full_time>Full Time</full_time>
339
+ <job_title>Engineer</job_title>
340
+ <user_id>19145216</user_id>
341
+ </attributes>
342
+ </element>
343
+ <element>
344
+ <id>1901496569</id>
345
+ <title>Representative</title>
346
+ <body>Job Responsibilities : Installs, services and repairs customer equipment. Performs warranty and recall work. B. Performs testing, calibration, checking, correcting, adjusting and part component replacement services on customer products. Constructs and tests circuits and equipment utilizing various tools and machines such as computers, workstations, circuit diagrams and test instruments/equipment. C. Instructs customers and sales personnel on the operation and customer maintenance of equipment. Provides technical support in product service, product training and applications. D. Analyzes malfunctions in equipment and interprets maintenance manuals, using knowledge of systems and electronics to isolate and correct the fault. Consults with product support and engineering personnel to determine solutions to unusual problems in system operation. E Reports customer suggestions on product improvement and existing product designs to the appropriate technical specialist.</body>
347
+ <url>http://jobs.oodle.com/u_a2xx_/1901496569-P1u1089,19-8D32DE3F300E/jobs.oodle.com___maKbRdLNNKz5FPpPvJgjgTLhh_6eYGDCH6bgN-GEEGo2hX9AWbRYT0sMrszke6DW7swENVHWoR-fTNb99ca5CEqU3RRWlP5g</url>
348
+ <category>
349
+ <id>job/energy</id>
350
+ <name>Oil, Gas &amp; Solar Power Jobs</name>
351
+ </category>
352
+ <source>
353
+ <id>www</id>
354
+ <name>Oodle</name>
355
+ </source>
356
+ <location>
357
+ <latitude>29.7721004</latitude>
358
+ <longitude>-95.4347992</longitude>
359
+ <citycode>usa:tx:houston</citycode>
360
+ <name>Houston</name>
361
+ <state>TX</state>
362
+ <country>USA</country>
363
+ </location>
364
+ <images />
365
+ <ctime>1271236837</ctime>
366
+ <paid>No</paid>
367
+ <revenue_score>0</revenue_score>
368
+ <similar_url>http://jobs.oodle.com/representative/careers/oil-gas-solar-power-jobs/?inbs=1</similar_url>
369
+ <attributes>
370
+ <company>Hound</company>
371
+ <employee_type>Full Time</employee_type>
372
+ <fee>No</fee>
373
+ <full_time>Full Time</full_time>
374
+ <job_title>Representative</job_title>
375
+ <user_id>19145216</user_id>
376
+ </attributes>
377
+ </element>
378
+ </listings>
379
+ <refinements>
380
+ <attributes>
381
+ <element>
382
+ <name>Job Title</name>
383
+ <values>
384
+ <element>
385
+ <name>Manager</name>
386
+ <count>4</count>
387
+ <id>job_title_manager</id>
388
+ </element>
389
+ <element>
390
+ <name>Tax Manager</name>
391
+ <count>2</count>
392
+ <id>job_title_tax_manager</id>
393
+ </element>
394
+ <element>
395
+ <name>Consultant</name>
396
+ <count>2</count>
397
+ <id>job_title_consultant</id>
398
+ </element>
399
+ <element>
400
+ <name>Analyst</name>
401
+ <count>2</count>
402
+ <id>job_title_analyst</id>
403
+ </element>
404
+ <element>
405
+ <name>Systems Specialist</name>
406
+ <count>1</count>
407
+ <id>job_title_systems_specialist</id>
408
+ </element>
409
+ <element>
410
+ <name>Senior Level Deepwater</name>
411
+ <count>1</count>
412
+ <id>job_title_senior_level_deepwater</id>
413
+ </element>
414
+ <element>
415
+ <name>Senior</name>
416
+ <count>1</count>
417
+ <id>job_title_senior</id>
418
+ </element>
419
+ <element>
420
+ <name>Representative</name>
421
+ <count>1</count>
422
+ <id>job_title_representative</id>
423
+ </element>
424
+ <element>
425
+ <name>Program Coordinator</name>
426
+ <count>1</count>
427
+ <id>job_title_program_coordinator</id>
428
+ </element>
429
+ <element>
430
+ <name>Procurement Process Leader</name>
431
+ <count>1</count>
432
+ <id>job_title_procurement_process_leader</id>
433
+ </element>
434
+ <element>
435
+ <name>Operations Process Leader</name>
436
+ <count>1</count>
437
+ <id>job_title_operations_process_leader</id>
438
+ </element>
439
+ <element>
440
+ <name>Operations</name>
441
+ <count>1</count>
442
+ <id>job_title_operations</id>
443
+ </element>
444
+ <element>
445
+ <name>Are You Looking for a Gas</name>
446
+ <count>1</count>
447
+ <id>job_title_are_you_looking_for_a_gas</id>
448
+ </element>
449
+ <element>
450
+ <name>Make - Per Hour Making</name>
451
+ <count>1</count>
452
+ <id>job_title_make_per_hour_making</id>
453
+ </element>
454
+ <element>
455
+ <name>Looking for an Oil Industry</name>
456
+ <count>1</count>
457
+ <id>job_title_looking_for_an_oil_industry</id>
458
+ </element>
459
+ <element>
460
+ <name>Looking for an Energy</name>
461
+ <count>1</count>
462
+ <id>job_title_looking_for_an_energy</id>
463
+ </element>
464
+ <element>
465
+ <name>Looking for a Solar Industry</name>
466
+ <count>1</count>
467
+ <id>job_title_looking_for_a_solar_industry</id>
468
+ </element>
469
+ <element>
470
+ <name>Looking for a Power Industry</name>
471
+ <count>1</count>
472
+ <id>job_title_looking_for_a_power_industry</id>
473
+ </element>
474
+ <element>
475
+ <name>Looking for a Green Energy</name>
476
+ <count>1</count>
477
+ <id>job_title_looking_for_a_green_energy</id>
478
+ </element>
479
+ <element>
480
+ <name>Looking for a Gas Industry</name>
481
+ <count>1</count>
482
+ <id>job_title_looking_for_a_gas_industry</id>
483
+ </element>
484
+ <element>
485
+ <name>Global Sap Procurement Process</name>
486
+ <count>1</count>
487
+ <id>job_title_global_sap_procurement_process</id>
488
+ </element>
489
+ <element>
490
+ <name>General Manager</name>
491
+ <count>1</count>
492
+ <id>job_title_general_manager</id>
493
+ </element>
494
+ <element>
495
+ <name>Fluids Specialist</name>
496
+ <count>1</count>
497
+ <id>job_title_fluids_specialist</id>
498
+ </element>
499
+ <element>
500
+ <name>Environmental Specialist</name>
501
+ <count>1</count>
502
+ <id>job_title_environmental_specialist</id>
503
+ </element>
504
+ <element>
505
+ <name>Engineer</name>
506
+ <count>1</count>
507
+ <id>job_title_engineer</id>
508
+ </element>
509
+ </values>
510
+ </element>
511
+ <element>
512
+ <name>Industry</name>
513
+ <values>
514
+ <element>
515
+ <name>Engineering &amp; Architecture</name>
516
+ <count>1</count>
517
+ <id>industry_engineering_architecture</id>
518
+ </element>
519
+ </values>
520
+ </element>
521
+ <element>
522
+ <name>Company</name>
523
+ <values>
524
+ <element>
525
+ <name>Chevron</name>
526
+ <count>8</count>
527
+ <id>company_chevron</id>
528
+ </element>
529
+ <element>
530
+ <name>Global Energy Services Company</name>
531
+ <count>3</count>
532
+ <id>company_global_energy_services_company</id>
533
+ </element>
534
+ <element>
535
+ <name>Hound</name>
536
+ <count>3</count>
537
+ <id>company_hound</id>
538
+ </element>
539
+ <element>
540
+ <name>Ambit Energy</name>
541
+ <count>2</count>
542
+ <id>company_ambit_energy</id>
543
+ </element>
544
+ <element>
545
+ <name>Oilandgascrossing</name>
546
+ <count>2</count>
547
+ <id>company_oilandgascrossing</id>
548
+ </element>
549
+ <element>
550
+ <name>Energycrossing</name>
551
+ <count>1</count>
552
+ <id>company_energycrossing</id>
553
+ </element>
554
+ <element>
555
+ <name>Global Oilfield Equipment Company</name>
556
+ <count>1</count>
557
+ <id>company_global_oilfield_equipment_company</id>
558
+ </element>
559
+ <element>
560
+ <name>Houstonmetrocrossing</name>
561
+ <count>1</count>
562
+ <id>company_houstonmetrocrossing</id>
563
+ </element>
564
+ <element>
565
+ <name>Izagg Energy</name>
566
+ <count>1</count>
567
+ <id>company_izagg_energy</id>
568
+ </element>
569
+ <element>
570
+ <name>Multi-Discipline EPC Company</name>
571
+ <count>1</count>
572
+ <id>company_multi_discipline_epc_company</id>
573
+ </element>
574
+ <element>
575
+ <name>Oil and Gas / Energy Company</name>
576
+ <count>1</count>
577
+ <id>company_oil_and_gas_energy_company</id>
578
+ </element>
579
+ <element>
580
+ <name>Siemens Wind Energy</name>
581
+ <count>1</count>
582
+ <id>company_siemens_wind_energy</id>
583
+ </element>
584
+ <element>
585
+ <name>Steel Company</name>
586
+ <count>1</count>
587
+ <id>company_steel_company</id>
588
+ </element>
589
+ <element>
590
+ <name>Tapfin</name>
591
+ <count>1</count>
592
+ <id>company_tapfin</id>
593
+ </element>
594
+ <element>
595
+ <name>Weatherford</name>
596
+ <count>1</count>
597
+ <id>company_weatherford</id>
598
+ </element>
599
+ </values>
600
+ </element>
601
+ <element>
602
+ <name>Job Type</name>
603
+ <values>
604
+ <element>
605
+ <name>Full Time</name>
606
+ <count>31</count>
607
+ <id>employee_type_full_time</id>
608
+ </element>
609
+ <element>
610
+ <name>Employee</name>
611
+ <count>22</count>
612
+ <id>employee_type_employee</id>
613
+ </element>
614
+ <element>
615
+ <name>Contractor</name>
616
+ <count>2</count>
617
+ <id>employee_type_contractor</id>
618
+ </element>
619
+ <element>
620
+ <name>Part Time</name>
621
+ <count>1</count>
622
+ <id>employee_type_part_time</id>
623
+ </element>
624
+ </values>
625
+ </element>
626
+ </attributes>
627
+ </refinements>
628
+ <meta>
629
+ <total>39</total>
630
+ <returned>10</returned>
631
+ <first>1</first>
632
+ <last>10</last>
633
+ <search_time>0.10159</search_time>
634
+ <search>
635
+ <title>Oil, Gas &amp; Solar Power Jobs</title>
636
+ <url>http://jobs.oodle.com/careers/careers/oil-gas-solar-power-jobs/</url>
637
+ </search>
638
+ <post>
639
+ <generic>
640
+ <url>http://www.oodle.com/post/?</url>
641
+ </generic>
642
+ <category>
643
+ <url>http://www.oodle.com/post/?category=job/energy</url>
644
+ </category>
645
+ </post>
646
+ <current_time>1271970316</current_time>
647
+ </meta>
648
+ </oodle_response>
@@ -0,0 +1,21 @@
1
+ require 'test_helper'
2
+
3
+ class MyTest < Test::Unit::TestCase
4
+
5
+ context "when creating new refinements" do
6
+
7
+ should "parse the refinement xml correctly" do
8
+ object = Oodler::Refinement.from_xml("<element><name>Job Title</name><values><element><name>Manager</name><count>4</count><id>job_title_manager</id></element></values></element>")
9
+ object.name.should == "Job Title"
10
+ object.values.should_not be_empty
11
+ object.values[0].name.should == "Manager"
12
+ end
13
+
14
+ should "parse the refinements xml correctly" do
15
+ object = Oodler::Refinements.from_xml("<refinements><attributes><element><name>Job Title</name><values><element><name>Manager</name><count>4</count><id>job_title_manager</id></element></values></element></attributes></refinements>")
16
+
17
+ object.values.should_not be_empty
18
+
19
+ end
20
+ end
21
+ end
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Hagedorn
@@ -103,6 +103,9 @@ files:
103
103
  - lib/oodler/image.rb
104
104
  - lib/oodler/location.rb
105
105
  - lib/oodler/oodle_response.rb
106
+ - lib/oodler/refinement.rb
107
+ - lib/oodler/refinement_value.rb
108
+ - lib/oodler/refinements.rb
106
109
  - lib/oodler/region.rb
107
110
  - lib/oodler/source.rb
108
111
  - lib/oodler/web_client.rb
@@ -111,7 +114,9 @@ files:
111
114
  - test/fixtures/blank.xml
112
115
  - test/fixtures/fail.xml
113
116
  - test/fixtures/listings.xml
117
+ - test/fixtures/refinement.xml
114
118
  - test/image_test.rb
119
+ - test/refinement_test.rb
115
120
  - test/test_helper.rb
116
121
  - test/web_client_test.rb
117
122
  has_rdoc: true
@@ -146,6 +151,7 @@ test_files:
146
151
  - test/client_test.rb
147
152
  - test/element_test.rb
148
153
  - test/image_test.rb
154
+ - test/refinement_test.rb
149
155
  - test/test_helper.rb
150
156
  - test/web_client_test.rb
151
157
  - examples/listings.rb