c80_shared 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8c57731d19725bf3952ac228856e67b329f76a2a3a0c910c9f5d1b69b9fa3cc
|
4
|
+
data.tar.gz: 27d7d078fa9abea8900008bab8eadd20fcb135237047d011e5a5fb4ed5a6cc4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d952202ea067e617d791f40a3f67ea612b40e695fc5b3ff3e5d1429ae8f8937e2599a6b2acfb97ce6373021ec1eef1a33085ce57ee1edd852ec8a21c7066adc8
|
7
|
+
data.tar.gz: ffcbbac4f4cc3d358b1b9854908461af8d7aece4f63fd9ec5d14bb215944261377128c63143f12c1e8fab46ad6535514184b8055fb20a96d318541205caf409d
|
@@ -136,7 +136,7 @@ class BoatSerializer < AbstractSerializer
|
|
136
136
|
end
|
137
137
|
|
138
138
|
def motor(boat)
|
139
|
-
{ motor: boat.motor
|
139
|
+
{ motor: boat.motor }
|
140
140
|
end
|
141
141
|
|
142
142
|
def main_boat_photo_id(boat)
|
@@ -153,7 +153,7 @@ class BoatSerializer < AbstractSerializer
|
|
153
153
|
|
154
154
|
def short_description(boat)
|
155
155
|
attr = 'short_description_%s' % @opts[:locale]
|
156
|
-
value = boat.send(attr.to_sym)
|
156
|
+
value = boat.send(attr.to_sym)
|
157
157
|
{ short_description: value }
|
158
158
|
end
|
159
159
|
|
@@ -189,27 +189,27 @@ class BoatSerializer < AbstractSerializer
|
|
189
189
|
end
|
190
190
|
|
191
191
|
def guests_total(boat)
|
192
|
-
{ guests_total: boat.guests_total
|
192
|
+
{ guests_total: boat.guests_total }
|
193
193
|
end
|
194
194
|
|
195
195
|
def guest_cabins(boat)
|
196
|
-
{ guest_cabins: boat.guest_cabins
|
196
|
+
{ guest_cabins: boat.guest_cabins }
|
197
197
|
end
|
198
198
|
|
199
199
|
def hull_material(boat)
|
200
|
-
{ hull_material: boat.hull_material
|
200
|
+
{ hull_material: boat.hull_material }
|
201
201
|
end
|
202
202
|
|
203
203
|
def crew_total(boat)
|
204
|
-
{ crew_total: boat.crew_total
|
204
|
+
{ crew_total: boat.crew_total }
|
205
205
|
end
|
206
206
|
|
207
207
|
def built_year(boat)
|
208
|
-
{ built_year: boat.built_year
|
208
|
+
{ built_year: boat.built_year }
|
209
209
|
end
|
210
210
|
|
211
211
|
def refit_year(boat)
|
212
|
-
value = boat.refit_year
|
212
|
+
value = boat.refit_year
|
213
213
|
{ refit_year: value }
|
214
214
|
end
|
215
215
|
|
@@ -282,121 +282,121 @@ class BoatSerializer < AbstractSerializer
|
|
282
282
|
end
|
283
283
|
|
284
284
|
def boat_hull_id(boat)
|
285
|
-
{ boat_hull_id: boat.boat_hull_id
|
285
|
+
{ boat_hull_id: boat.boat_hull_id }
|
286
286
|
end
|
287
287
|
|
288
288
|
# --[low]-----------------------------------------------------------------------------------------------------------
|
289
289
|
|
290
290
|
def charter_1_hour_low_usd(boat)
|
291
|
-
{ charter_1_hour_low_usd: boat.charter_1_hour_low_usd
|
291
|
+
{ charter_1_hour_low_usd: boat.charter_1_hour_low_usd }
|
292
292
|
end
|
293
293
|
|
294
294
|
def charter_1_hour_low_rub(boat)
|
295
|
-
{ charter_1_hour_low_rub: boat.charter_1_hour_low_rub
|
295
|
+
{ charter_1_hour_low_rub: boat.charter_1_hour_low_rub }
|
296
296
|
end
|
297
297
|
|
298
298
|
def charter_1_hour_low_eur(boat)
|
299
|
-
{ charter_1_hour_low_eur: boat.charter_1_hour_low_eur
|
299
|
+
{ charter_1_hour_low_eur: boat.charter_1_hour_low_eur }
|
300
300
|
end
|
301
301
|
|
302
302
|
def charter_1_day_low_usd(boat)
|
303
|
-
{ charter_1_day_low_usd: boat.charter_1_day_low_usd
|
303
|
+
{ charter_1_day_low_usd: boat.charter_1_day_low_usd }
|
304
304
|
end
|
305
305
|
|
306
306
|
def charter_1_day_low_rub(boat)
|
307
|
-
{ charter_1_day_low_rub: boat.charter_1_day_low_rub
|
307
|
+
{ charter_1_day_low_rub: boat.charter_1_day_low_rub }
|
308
308
|
end
|
309
309
|
|
310
310
|
def charter_1_day_low_eur(boat)
|
311
|
-
{ charter_1_day_low_eur: boat.charter_1_day_low_eur
|
311
|
+
{ charter_1_day_low_eur: boat.charter_1_day_low_eur }
|
312
312
|
end
|
313
313
|
|
314
314
|
def charter_1_week_low_usd(boat)
|
315
|
-
{ charter_1_week_low_usd: boat.charter_1_week_low_usd
|
315
|
+
{ charter_1_week_low_usd: boat.charter_1_week_low_usd }
|
316
316
|
end
|
317
317
|
|
318
318
|
def charter_1_week_low_rub(boat)
|
319
|
-
{ charter_1_week_low_rub: boat.charter_1_week_low_rub
|
319
|
+
{ charter_1_week_low_rub: boat.charter_1_week_low_rub }
|
320
320
|
end
|
321
321
|
|
322
322
|
def charter_1_week_low_eur(boat)
|
323
|
-
{ charter_1_week_low_eur: boat.charter_1_week_low_eur
|
323
|
+
{ charter_1_week_low_eur: boat.charter_1_week_low_eur }
|
324
324
|
end
|
325
325
|
|
326
326
|
def charter_1_month_low_usd(boat)
|
327
|
-
{ charter_1_month_low_usd: boat.charter_1_month_low_usd
|
327
|
+
{ charter_1_month_low_usd: boat.charter_1_month_low_usd }
|
328
328
|
end
|
329
329
|
|
330
330
|
def charter_1_month_low_rub(boat)
|
331
|
-
{ charter_1_month_low_rub: boat.charter_1_month_low_rub
|
331
|
+
{ charter_1_month_low_rub: boat.charter_1_month_low_rub }
|
332
332
|
end
|
333
333
|
|
334
334
|
def charter_1_month_low_eur(boat)
|
335
|
-
{ charter_1_month_low_eur: boat.charter_1_month_low_eur
|
335
|
+
{ charter_1_month_low_eur: boat.charter_1_month_low_eur }
|
336
336
|
end
|
337
337
|
|
338
338
|
# --[high]-----------------------------------------------------------------------------------------------------------
|
339
339
|
|
340
340
|
def charter_1_hour_high_usd(boat)
|
341
|
-
{ charter_1_hour_high_usd: boat.charter_1_hour_high_usd
|
341
|
+
{ charter_1_hour_high_usd: boat.charter_1_hour_high_usd }
|
342
342
|
end
|
343
343
|
|
344
344
|
def charter_1_hour_high_rub(boat)
|
345
|
-
{ charter_1_hour_high_rub: boat.charter_1_hour_high_rub
|
345
|
+
{ charter_1_hour_high_rub: boat.charter_1_hour_high_rub }
|
346
346
|
end
|
347
347
|
|
348
348
|
def charter_1_hour_high_eur(boat)
|
349
|
-
{ charter_1_hour_high_eur: boat.charter_1_hour_high_eur
|
349
|
+
{ charter_1_hour_high_eur: boat.charter_1_hour_high_eur }
|
350
350
|
end
|
351
351
|
|
352
352
|
def charter_1_day_high_usd(boat)
|
353
|
-
{ charter_1_day_high_usd: boat.charter_1_day_high_usd
|
353
|
+
{ charter_1_day_high_usd: boat.charter_1_day_high_usd }
|
354
354
|
end
|
355
355
|
|
356
356
|
def charter_1_day_high_rub(boat)
|
357
|
-
{ charter_1_day_high_rub: boat.charter_1_day_high_rub
|
357
|
+
{ charter_1_day_high_rub: boat.charter_1_day_high_rub }
|
358
358
|
end
|
359
359
|
|
360
360
|
def charter_1_day_high_eur(boat)
|
361
|
-
{ charter_1_day_high_eur: boat.charter_1_day_high_eur
|
361
|
+
{ charter_1_day_high_eur: boat.charter_1_day_high_eur }
|
362
362
|
end
|
363
363
|
|
364
364
|
def charter_1_week_high_usd(boat)
|
365
|
-
{ charter_1_week_high_usd: boat.charter_1_week_high_usd
|
365
|
+
{ charter_1_week_high_usd: boat.charter_1_week_high_usd }
|
366
366
|
end
|
367
367
|
|
368
368
|
def charter_1_week_high_rub(boat)
|
369
|
-
{ charter_1_week_high_rub: boat.charter_1_week_high_rub
|
369
|
+
{ charter_1_week_high_rub: boat.charter_1_week_high_rub }
|
370
370
|
end
|
371
371
|
|
372
372
|
def charter_1_week_high_eur(boat)
|
373
|
-
{ charter_1_week_high_eur: boat.charter_1_week_high_eur
|
373
|
+
{ charter_1_week_high_eur: boat.charter_1_week_high_eur }
|
374
374
|
end
|
375
375
|
|
376
376
|
def charter_1_month_high_usd(boat)
|
377
|
-
{ charter_1_month_high_usd: boat.charter_1_month_high_usd
|
377
|
+
{ charter_1_month_high_usd: boat.charter_1_month_high_usd }
|
378
378
|
end
|
379
379
|
|
380
380
|
def charter_1_month_high_rub(boat)
|
381
|
-
{ charter_1_month_high_rub: boat.charter_1_month_high_rub
|
381
|
+
{ charter_1_month_high_rub: boat.charter_1_month_high_rub }
|
382
382
|
end
|
383
383
|
|
384
384
|
def charter_1_month_high_eur(boat)
|
385
|
-
{ charter_1_month_high_eur: boat.charter_1_month_high_eur
|
385
|
+
{ charter_1_month_high_eur: boat.charter_1_month_high_eur }
|
386
386
|
end
|
387
387
|
|
388
388
|
# --[sale]----------------------------------------------------------------------------------------------------------
|
389
389
|
|
390
390
|
def sale_price_usd(boat)
|
391
|
-
{ sale_price_usd: boat.sale_price_usd
|
391
|
+
{ sale_price_usd: boat.sale_price_usd }
|
392
392
|
end
|
393
393
|
|
394
394
|
def sale_price_rub(boat)
|
395
|
-
{ sale_price_rub: boat.sale_price_rub
|
395
|
+
{ sale_price_rub: boat.sale_price_rub }
|
396
396
|
end
|
397
397
|
|
398
398
|
def sale_price_eur(boat)
|
399
|
-
{ sale_price_eur: boat.sale_price_eur
|
399
|
+
{ sale_price_eur: boat.sale_price_eur }
|
400
400
|
end
|
401
401
|
|
402
402
|
# --[discount]------------------------------------------------------------------------------------------------------
|
data/lib/c80_shared/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: c80_shared
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- C80609A
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|