firstjob_api 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/firstjob_api/publication.rb +8 -2
- data/lib/firstjob_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bd08bf20bf89de8b9de8dbfa1a68ad0a47bc954
|
4
|
+
data.tar.gz: adc014b51682848040b3378b2449d043f0565456
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de2b31f75079269c06ac1704dc390ad94b2da9138ffadcaaeb91b613c698bf5e372b82248d0a0f31793e1bf1f3ccedf6160016c787ae61caafe1dd13125d8fce
|
7
|
+
data.tar.gz: fc98fe1e614afad1b162430777902a8b79effd8de3c4a73977677a826bc013f57b3534ced41799f8d280c9eadb73a368aaa4836294f9f189a53b36e51b4d08f4
|
data/Gemfile.lock
CHANGED
@@ -3,7 +3,9 @@ module FirstjobApi
|
|
3
3
|
attr_accessor :title, :description, :career_status_id,
|
4
4
|
:looking_for_id, :location, :years_experience, :salary,
|
5
5
|
:english_level_id, :excel_level_id, :careers_ids,
|
6
|
-
:universities_ids, :id, :slug, :
|
6
|
+
:universities_ids, :id, :slug, :postulantes, :questions,
|
7
|
+
:publish_response
|
8
|
+
|
7
9
|
|
8
10
|
def initialize(attributes={})
|
9
11
|
# Default values
|
@@ -13,6 +15,7 @@ module FirstjobApi
|
|
13
15
|
@years_experience = 0
|
14
16
|
@english_level_id = 1
|
15
17
|
@excel_level_id = 1
|
18
|
+
@questions = []
|
16
19
|
|
17
20
|
attributes.each do |key, value|
|
18
21
|
self.send("#{key}=", value)
|
@@ -40,7 +43,7 @@ module FirstjobApi
|
|
40
43
|
# load results
|
41
44
|
@slug = response_body["slug"]
|
42
45
|
@id = response_body["id"]
|
43
|
-
@
|
46
|
+
@publish_response = response
|
44
47
|
return self
|
45
48
|
end
|
46
49
|
|
@@ -90,6 +93,9 @@ module FirstjobApi
|
|
90
93
|
if universities_ids.present?
|
91
94
|
hash[:universities] = universities_ids # optional, array or NOT PRESENT
|
92
95
|
end
|
96
|
+
if questions.present?
|
97
|
+
hash[:questions] = questions # optional, array or NOT PRESENT
|
98
|
+
end
|
93
99
|
return hash
|
94
100
|
end
|
95
101
|
|
data/lib/firstjob_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firstjob_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Fernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|