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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODdmMTdlZGQ3YTM0ODQ2ZmQwMmZhZjU2N2YwZGQ2NGE5YTE4ODA2Zg==
4
+ NTExZDg1N2FmYzQ0NWEyMTFkNjIxOTNhNmI5ODg4MTdkNTIzMDhkZQ==
5
5
  data.tar.gz: !binary |-
6
- Yzc2NjgxMDU0YjRkM2Q1YzI1YzQyNjMxYTgxYWMxM2M1MDY1MjkxZg==
6
+ ZWQ2NDdlZGZkYjE5MWRkOWE3YzY2MDIwZDUwN2ZkYTQyZDk5ZDcxMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjhmMGM3YjY1MGQwMzcyYTdjZTc4NzE2MGFkYjljNjM0ODg4YWUwZjA0Mjk4
10
- ZTU0MjEwZDc1ODNhMTRhZGU2OTZkZjE0Yzk4ZDA1NmFlOWU4NWM3M2UwMDJl
11
- MmJiY2RiNzRhZjFkMTZkOWQ4MjZjNWY1YWU1OWIyYmFkMGVjMGI=
9
+ NTAwODMyMzczNDY0MDJlZDQ5ZDg2YTA1YTBkY2E3MzdmNjgxNGI2MjA0YzEz
10
+ ZjQyMWE4YTE4OTVjMWYxNGRkMTcxOWZlMDgxOTZiYWMwZjVkNDNmNGJlYjcz
11
+ NzQyNzM1YWIzYzFmZTM1MzFmZGJhZjZjODI5M2UyMTI1YTM0N2E=
12
12
  data.tar.gz: !binary |-
13
- MmE0YTQxOGIwNTY1NWJlN2NiNzdhY2FjYTYwMTA5YTM3YzcyOGIzZDhiNjdi
14
- NjJmNzZlNDlkMTdiMWZlOTMwZTZkOWYxNWRkZTY3MzBhOTgzODk0N2U0MGYw
15
- YWMzYjc4NWExYzQ5ZmNlMDI0ZmI2MGVmMTVjZDNiY2JmZTAzZTc=
13
+ ZmJiYzNlNjkyZTFiNjhiYWNiZTQ5NTc2YmY4YWE3NmIwODMxNjRkNTM5YTk4
14
+ NjkzODUxYWI0NjFhMzc0MmU5OGJjMmNjYzVhMzMwNzZjNjI4MDM1NTU4Y2U4
15
+ Zjk4ZjdkNTYzMjZkMGMzNGY4MDQ4ZmY5ODBmZDU3N2U2ODI2Njk=
@@ -148,7 +148,21 @@ class TouristicObject
148
148
  end
149
149
 
150
150
  def prestations(prestation_type)
151
- @prestations && @prestations[prestation_type] && @prestations[prestation_type].collect {|t| t[@libelle]}
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
@@ -1,3 +1,3 @@
1
1
  module SitraClient
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitra_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeanbaptistevilain