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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91ff3d09314d329c90ae9592aba90979b8a4412c
4
- data.tar.gz: 9269762025dcfbf4f2f83c0620992807acb36761
3
+ metadata.gz: 0bd08bf20bf89de8b9de8dbfa1a68ad0a47bc954
4
+ data.tar.gz: adc014b51682848040b3378b2449d043f0565456
5
5
  SHA512:
6
- metadata.gz: 2b6e05ef4c0c8730d60e203f722b1ba62734d08f377687b99f9cfa8bea16cea0833ffc42171eea87b82c27ce5a3fccc91d1653cde4ce75b3cd00ab1ead381d55
7
- data.tar.gz: 5de75c98584f2c5c44baf5af95586f253a954b117626baf54358273f3799f767ae3f007a6133efeaa89b5653e8f7c4b3fadcbace71814b211ebd6f4985583f2b
6
+ metadata.gz: de2b31f75079269c06ac1704dc390ad94b2da9138ffadcaaeb91b613c698bf5e372b82248d0a0f31793e1bf1f3ccedf6160016c787ae61caafe1dd13125d8fce
7
+ data.tar.gz: fc98fe1e614afad1b162430777902a8b79effd8de3c4a73977677a826bc013f57b3534ced41799f8d280c9eadb73a368aaa4836294f9f189a53b36e51b4d08f4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- firstjob_api (1.0.4)
4
+ firstjob_api (1.0.5)
5
5
  httparty (>= 0.13.3)
6
6
  rails (>= 3.2)
7
7
 
@@ -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, :status, :postulantes
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
- @status = response_body["status"]
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
 
@@ -1,3 +1,3 @@
1
1
  module FirstjobApi
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
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
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-10 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails