jobparser 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jobparser/cache/mongostore.rb +5 -1
- data/lib/jobparser/version.rb +1 -1
- metadata +1 -1
@@ -21,7 +21,11 @@ module JobParser
|
|
21
21
|
def get(url)
|
22
22
|
job = Job.where(:url => url).first
|
23
23
|
new_obj = {}
|
24
|
-
job.attributes.each { |k, v|
|
24
|
+
job.attributes.each { |k, v|
|
25
|
+
unless %w{created_at _id updated_at}.include?(k)
|
26
|
+
new_obj[k.to_sym] = v
|
27
|
+
end
|
28
|
+
}
|
25
29
|
new_obj[:from_cache] = true
|
26
30
|
new_obj
|
27
31
|
end
|
data/lib/jobparser/version.rb
CHANGED