c80_shared 0.1.16 → 0.1.17

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
  SHA256:
3
- metadata.gz: cde6b4910035f561acdab26049ac39873c785e174d5034c163c16dc62eed9b61
4
- data.tar.gz: 899f3df15035dee6aff913d48f649ccf867b2fca941e985b07574d3e9b3cfc28
3
+ metadata.gz: b8c57731d19725bf3952ac228856e67b329f76a2a3a0c910c9f5d1b69b9fa3cc
4
+ data.tar.gz: 27d7d078fa9abea8900008bab8eadd20fcb135237047d011e5a5fb4ed5a6cc4a
5
5
  SHA512:
6
- metadata.gz: 9e03ea2c8a4e2bb41666cdbdfb49055f8cbfb5827ccc05834c693e1f0564f7707a561f3f5d6bfb335d92a791376376c43d2e8878ac09689228af6f2fc68160d4
7
- data.tar.gz: 607dae99f944d8ffa3be82ece28befbab975caade25b3d791d2c91b21a8745d0f415355f01b664837883498b58015ab915d2948bb6e49fe084d959a89ff166d7
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]------------------------------------------------------------------------------------------------------
@@ -15,9 +15,11 @@ module Configs
15
15
  boat_length_metrics
16
16
  built_year
17
17
  boat_model
18
+ boat_type
18
19
  location_address
19
20
  price
20
21
  per_season
22
+ state
21
23
  ]
22
24
  end
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module C80Shared
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
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.16
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-05 00:00:00.000000000 Z
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler