sitra_client 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/sitra_client/touristic_object.rb +15 -1
- data/lib/sitra_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTExZDg1N2FmYzQ0NWEyMTFkNjIxOTNhNmI5ODg4MTdkNTIzMDhkZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWQ2NDdlZGZkYjE5MWRkOWE3YzY2MDIwZDUwN2ZkYTQyZDk5ZDcxMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTAwODMyMzczNDY0MDJlZDQ5ZDg2YTA1YTBkY2E3MzdmNjgxNGI2MjA0YzEz
|
10
|
+
ZjQyMWE4YTE4OTVjMWYxNGRkMTcxOWZlMDgxOTZiYWMwZjVkNDNmNGJlYjcz
|
11
|
+
NzQyNzM1YWIzYzFmZTM1MzFmZGJhZjZjODI5M2UyMTI1YTM0N2E=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmJiYzNlNjkyZTFiNjhiYWNiZTQ5NTc2YmY4YWE3NmIwODMxNjRkNTM5YTk4
|
14
|
+
NjkzODUxYWI0NjFhMzc0MmU5OGJjMmNjYzVhMzMwNzZjNjI4MDM1NTU4Y2U4
|
15
|
+
Zjk4ZjdkNTYzMjZkMGMzNGY4MDQ4ZmY5ODBmZDU3N2U2ODI2Njk=
|
@@ -148,7 +148,21 @@ class TouristicObject
|
|
148
148
|
end
|
149
149
|
|
150
150
|
def prestations(prestation_type)
|
151
|
-
|
151
|
+
presta = {}
|
152
|
+
@prestations && @prestations[prestation_type].each do |i|
|
153
|
+
value = i[@libelle]
|
154
|
+
if i[:familleCritere].nil?
|
155
|
+
key = 'Autre'
|
156
|
+
else
|
157
|
+
key = i[:familleCritere][:libelleFr]
|
158
|
+
end
|
159
|
+
if presta.has_key?(key)
|
160
|
+
presta[key] << value
|
161
|
+
else
|
162
|
+
presta.store(key,[value])
|
163
|
+
end
|
164
|
+
end
|
165
|
+
presta
|
152
166
|
end
|
153
167
|
|
154
168
|
def environments
|
data/lib/sitra_client/version.rb
CHANGED