metrojobb 0.2.0 → 0.2.1
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/metrojobb/employment_type.rb +4 -4
- data/lib/metrojobb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb38b04314f15720f9ac5ae263403311ca43f8cf
|
4
|
+
data.tar.gz: 22b3414e1c0c4d498562bcc2ea9fe56220a88978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 182b6c8928fd70f33c84f4a1887a7711c443606e1d7911e1c19706ebb3feba5c13e43d6f08a6f0cc75c63fbf6b0559515ab432cd83f008d9fa9740612cc01efd
|
7
|
+
data.tar.gz: 955db535c24173463da6542b184a6f8ffde23472b460dd89913f15ecd3a32583cb4fbfcc7ef6b92d6cee41133f7cbb957c46fd237e64fa58352775a416d022c4
|
data/Gemfile.lock
CHANGED
@@ -14,20 +14,20 @@ module Metrojobb
|
|
14
14
|
|
15
15
|
def to_xml(builder: Builder::XmlMarkup.new(indent: 2))
|
16
16
|
builder.employmentType do |node|
|
17
|
-
node.id(
|
17
|
+
node.id(employment_type_id)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
def
|
21
|
+
def employment_type_id
|
22
22
|
NAME_ID_MAP[name.presence || id.presence] ||
|
23
23
|
id.presence ||
|
24
24
|
name.presence
|
25
25
|
end
|
26
26
|
|
27
27
|
def validate_known_employment_type
|
28
|
-
return if ID_NAME_MAP[
|
28
|
+
return if ID_NAME_MAP[employment_type_id]
|
29
29
|
|
30
|
-
errors.add(:
|
30
|
+
errors.add(:employment_type_id, :inclusion)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
data/lib/metrojobb/version.rb
CHANGED