uddf 0.2.0 → 0.3.0
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 +4 -4
- data/.rubocop.yml +8 -1
- data/.rubocop_todo.yml +62 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +37 -4
- data/README.md +6 -2
- data/lib/uddf/base/models.rb +36 -0
- data/lib/uddf/v323/models.rb +285 -303
- data/lib/uddf/v330/models.rb +1744 -0
- data/lib/uddf/v331/models.rb +1757 -0
- data/lib/uddf/v331/schema.xsd +15 -21
- data/lib/uddf/version.rb +1 -1
- data/lib/uddf.rb +7 -1
- data/uddf.gemspec +6 -1
- metadata +77 -11
- data/.github/workflows/main.yml +0 -16
- data/dive_files/BaMQZdEhp3djeDxQ5HyCreOntBm1-1753908953.uddf +0 -6060
- data/dive_files/Peregrine TX[93CBB2BB]#140_2025-03-21.uddf +0 -4735
- data/dive_files/Peregrine TX[93CBB2BB]#148_2025-06-26.uddf +0 -2414
- data/test_files/v330/diver_data.uddf +0 -311
data/lib/uddf/v323/models.rb
CHANGED
@@ -13,7 +13,7 @@ module UDDF
|
|
13
13
|
|
14
14
|
attribute :id, String
|
15
15
|
has_one :address, Base::Models::Address
|
16
|
-
|
16
|
+
has_many :alias_names, String, tag: "aliasname"
|
17
17
|
has_one :contact, Base::Models::Contact
|
18
18
|
has_one :name, String
|
19
19
|
end
|
@@ -31,7 +31,7 @@ module UDDF
|
|
31
31
|
|
32
32
|
tag "generator"
|
33
33
|
|
34
|
-
|
34
|
+
has_many :alias_names, String, tag: "aliasname"
|
35
35
|
has_one :datetime, DateTime
|
36
36
|
has_many :links, Link, tag: "link"
|
37
37
|
has_one :name, String
|
@@ -54,7 +54,7 @@ module UDDF
|
|
54
54
|
tag "price"
|
55
55
|
|
56
56
|
attribute :currency, String
|
57
|
-
|
57
|
+
content :value, Float
|
58
58
|
end
|
59
59
|
|
60
60
|
class Tissue
|
@@ -63,7 +63,7 @@ module UDDF
|
|
63
63
|
tag "tissue"
|
64
64
|
|
65
65
|
attribute :gas, String
|
66
|
-
attribute :half_life, Float
|
66
|
+
attribute :half_life, Float, tag: "halflife"
|
67
67
|
attribute :number, Integer
|
68
68
|
attribute :a, Float
|
69
69
|
attribute :b, Float
|
@@ -98,8 +98,8 @@ module UDDF
|
|
98
98
|
tag "buehlmann"
|
99
99
|
|
100
100
|
attribute :id, String
|
101
|
-
has_one :gradient_factor_high, Float
|
102
|
-
has_one :gradient_factor_low, Float
|
101
|
+
has_one :gradient_factor_high, Float, tag: "gradientfactorhigh"
|
102
|
+
has_one :gradient_factor_low, Float, tag: "gradientfactorlow"
|
103
103
|
has_many :tissues, Tissue, tag: "tissue"
|
104
104
|
end
|
105
105
|
|
@@ -119,17 +119,17 @@ module UDDF
|
|
119
119
|
tag "mix"
|
120
120
|
|
121
121
|
attribute :id, String
|
122
|
-
|
122
|
+
has_many :alias_names, String, tag: "aliasname"
|
123
123
|
has_one :ar, Float
|
124
|
-
has_one :equivalent_air_depth, Float
|
124
|
+
has_one :equivalent_air_depth, Float, tag: "equivalentairdepth"
|
125
125
|
has_one :h2, Float
|
126
126
|
has_one :he, Float
|
127
|
-
has_one :maximum_operation_depth, Float
|
128
|
-
has_one :maximum_po2, Float
|
127
|
+
has_one :maximum_operation_depth, Float, tag: "maximumoperationdepth"
|
128
|
+
has_one :maximum_po2, Float, tag: "maximumpo2"
|
129
129
|
has_one :n2, Float
|
130
130
|
has_one :name, String
|
131
131
|
has_one :o2, Float
|
132
|
-
has_one :price_per_litre, Price
|
132
|
+
has_one :price_per_litre, Price, tag: "priceperlitre"
|
133
133
|
end
|
134
134
|
|
135
135
|
class GasDefinitions
|
@@ -145,8 +145,8 @@ module UDDF
|
|
145
145
|
|
146
146
|
tag "wayaltitude"
|
147
147
|
|
148
|
-
attribute :way_time, Float
|
149
|
-
|
148
|
+
attribute :way_time, Float, tag: "waytime"
|
149
|
+
content :value, Float
|
150
150
|
end
|
151
151
|
|
152
152
|
class ExposureToAltitude
|
@@ -154,10 +154,10 @@ module UDDF
|
|
154
154
|
|
155
155
|
tag "exposuretoaltitude"
|
156
156
|
|
157
|
-
has_one :altitude_of_exposure, Float
|
158
|
-
has_one :date_of_flight,
|
159
|
-
has_one :surface_interval_before_altitude_exposure, Float
|
160
|
-
has_one :total_length_of_exposure, Float
|
157
|
+
has_one :altitude_of_exposure, Float, tag: "altitudeofexposure"
|
158
|
+
has_one :date_of_flight, Base::Models::DateTimeField, tag: "dateofflight"
|
159
|
+
has_one :surface_interval_before_altitude_exposure, Float, tag: "surfaceintervalbeforealtitudeexposure"
|
160
|
+
has_one :total_length_of_exposure, Float, tag: "totallengthofexposure"
|
161
161
|
has_one :transportation, String
|
162
162
|
end
|
163
163
|
|
@@ -166,9 +166,9 @@ module UDDF
|
|
166
166
|
|
167
167
|
tag "surfaceintervalbeforedive"
|
168
168
|
|
169
|
-
has_one :exposure_to_altitude, ExposureToAltitude
|
169
|
+
has_one :exposure_to_altitude, ExposureToAltitude, tag: "exposuretoaltitude"
|
170
170
|
has_one :infinity, String
|
171
|
-
has_one :passed_time, Float
|
171
|
+
has_one :passed_time, Float, tag: "passedtime"
|
172
172
|
has_many :way_altitudes, WayAltitude, tag: "wayaltitude"
|
173
173
|
end
|
174
174
|
|
@@ -177,9 +177,9 @@ module UDDF
|
|
177
177
|
|
178
178
|
tag "surfaceintervalafterdive"
|
179
179
|
|
180
|
-
has_one :exposure_to_altitude, ExposureToAltitude
|
180
|
+
has_one :exposure_to_altitude, ExposureToAltitude, tag: "exposuretoaltitude"
|
181
181
|
has_one :infinity, String
|
182
|
-
has_one :passed_time, Float
|
182
|
+
has_one :passed_time, Float, tag: "passedtime"
|
183
183
|
has_many :way_altitudes, WayAltitude, tag: "wayaltitude"
|
184
184
|
end
|
185
185
|
|
@@ -189,7 +189,7 @@ module UDDF
|
|
189
189
|
tag "tankpressure"
|
190
190
|
|
191
191
|
attribute :ref, String
|
192
|
-
|
192
|
+
content :value, Float
|
193
193
|
end
|
194
194
|
|
195
195
|
class SwitchMix
|
@@ -205,8 +205,8 @@ module UDDF
|
|
205
205
|
|
206
206
|
tag "setpo2"
|
207
207
|
|
208
|
-
attribute :set_by, String
|
209
|
-
|
208
|
+
attribute :set_by, String, tag: "setby"
|
209
|
+
content :value, Float
|
210
210
|
end
|
211
211
|
|
212
212
|
class MeasuredPo2
|
@@ -215,7 +215,7 @@ module UDDF
|
|
215
215
|
tag "measuredpo2"
|
216
216
|
|
217
217
|
attribute :ref, String
|
218
|
-
|
218
|
+
content :value, Float
|
219
219
|
end
|
220
220
|
|
221
221
|
class GradientFactor
|
@@ -224,7 +224,7 @@ module UDDF
|
|
224
224
|
tag "gradientfactor"
|
225
225
|
|
226
226
|
attribute :tissue, Integer
|
227
|
-
|
227
|
+
content :value, Float
|
228
228
|
end
|
229
229
|
|
230
230
|
class DiveMode
|
@@ -241,7 +241,7 @@ module UDDF
|
|
241
241
|
tag "decostop"
|
242
242
|
|
243
243
|
attribute :kind, String
|
244
|
-
attribute :deco_depth, Float
|
244
|
+
attribute :deco_depth, Float, tag: "decodepth"
|
245
245
|
attribute :duration, Float
|
246
246
|
end
|
247
247
|
|
@@ -250,9 +250,9 @@ module UDDF
|
|
250
250
|
|
251
251
|
tag "batterychargecondition"
|
252
252
|
|
253
|
-
attribute :device_ref, String
|
254
|
-
attribute :tank_ref, String
|
255
|
-
|
253
|
+
attribute :device_ref, String, tag: "deviceref"
|
254
|
+
attribute :tank_ref, String, tag: "tankref"
|
255
|
+
content :value, Float
|
256
256
|
end
|
257
257
|
|
258
258
|
class Alarm
|
@@ -261,8 +261,8 @@ module UDDF
|
|
261
261
|
tag "alarm"
|
262
262
|
|
263
263
|
attribute :level, Float
|
264
|
-
attribute :tank_ref, String
|
265
|
-
|
264
|
+
attribute :tank_ref, String, tag: "tankref"
|
265
|
+
content :value, String
|
266
266
|
end
|
267
267
|
|
268
268
|
class Waypoint
|
@@ -272,21 +272,21 @@ module UDDF
|
|
272
272
|
|
273
273
|
has_many :alarms, Alarm, tag: "alarm"
|
274
274
|
has_many :battery_charge_conditions, BatteryChargeCondition, tag: "batterychargecondition"
|
275
|
-
has_one :calculated_po2, Float
|
275
|
+
has_one :calculated_po2, Float, tag: "calculatedpo2"
|
276
276
|
has_one :cns, Float
|
277
277
|
has_many :deco_stops, Decostop, tag: "decostop"
|
278
278
|
has_one :depth, Float
|
279
|
-
has_one :dive_mode, DiveMode
|
280
|
-
has_one :dive_time, Float
|
281
|
-
has_one :gradient_factor, GradientFactor
|
279
|
+
has_one :dive_mode, DiveMode, tag: "divemode"
|
280
|
+
has_one :dive_time, Float, tag: "divetime"
|
281
|
+
has_one :gradient_factor, GradientFactor, tag: "gradientfactor"
|
282
282
|
has_one :heading, Float
|
283
283
|
has_many :measured_po2s, MeasuredPo2, tag: "measuredpo2"
|
284
|
-
has_one :no_deco_time, Float
|
284
|
+
has_one :no_deco_time, Float, tag: "nodecotime"
|
285
285
|
has_one :otu, Float
|
286
|
-
has_one :remaining_bottom_time, Float
|
287
|
-
has_one :remaining_o2_time, Float
|
286
|
+
has_one :remaining_bottom_time, Float, tag: "remainingbottomtime"
|
287
|
+
has_one :remaining_o2_time, Float, tag: "remainingo2time"
|
288
288
|
has_many :set_po2s, SetPo2, tag: "setpo2"
|
289
|
-
has_one :switch_mix, SwitchMix
|
289
|
+
has_one :switch_mix, SwitchMix, tag: "switchmix"
|
290
290
|
has_many :tank_pressures, TankPressure, tag: "tankpressure"
|
291
291
|
has_one :temperature, Float
|
292
292
|
end
|
@@ -296,11 +296,11 @@ module UDDF
|
|
296
296
|
|
297
297
|
tag "medicine"
|
298
298
|
|
299
|
-
|
299
|
+
has_many :alias_names, String, tag: "aliasname"
|
300
300
|
has_one :name, String
|
301
301
|
has_one :notes, Notes
|
302
|
-
has_one :periodically_taken, String
|
303
|
-
has_one :timespan_before_dive, Float
|
302
|
+
has_one :periodically_taken, String, tag: "periodicallytaken"
|
303
|
+
has_one :timespan_before_dive, Float, tag: "timespanbeforedive"
|
304
304
|
end
|
305
305
|
|
306
306
|
class MedicationBeforeDive
|
@@ -316,8 +316,8 @@ module UDDF
|
|
316
316
|
|
317
317
|
tag "plannedprofile"
|
318
318
|
|
319
|
-
attribute :start_dive_mode, String
|
320
|
-
attribute :start_mix, String
|
319
|
+
attribute :start_dive_mode, String, tag: "startdivemode"
|
320
|
+
attribute :start_mix, String, tag: "startmix"
|
321
321
|
has_many :waypoints, Waypoint, tag: "waypoint"
|
322
322
|
end
|
323
323
|
|
@@ -326,11 +326,11 @@ module UDDF
|
|
326
326
|
|
327
327
|
tag "drink"
|
328
328
|
|
329
|
-
|
329
|
+
has_many :alias_names, String, tag: "aliasname"
|
330
330
|
has_one :name, String
|
331
331
|
has_one :notes, Notes
|
332
|
-
has_one :periodically_taken, String
|
333
|
-
has_one :timespan_before_dive, Float
|
332
|
+
has_one :periodically_taken, String, tag: "periodicallytaken"
|
333
|
+
has_one :timespan_before_dive, Float, tag: "timespanbeforedive"
|
334
334
|
end
|
335
335
|
|
336
336
|
class AlcoholBeforeDive
|
@@ -346,25 +346,25 @@ module UDDF
|
|
346
346
|
|
347
347
|
tag "informationbeforedive"
|
348
348
|
|
349
|
-
has_one :air_temperature, Float
|
350
|
-
has_one :alcohol_before_dive, AlcoholBeforeDive
|
349
|
+
has_one :air_temperature, Float, tag: "airtemperature"
|
350
|
+
has_one :alcohol_before_dive, AlcoholBeforeDive, tag: "alcoholbeforedive"
|
351
351
|
has_one :altitude, Float
|
352
352
|
has_one :apparatus, String
|
353
353
|
has_one :datetime, DateTime
|
354
|
-
has_one :dive_number, Integer
|
355
|
-
has_one :dive_number_of_day, Integer
|
356
|
-
has_one :internal_dive_number, Integer
|
354
|
+
has_one :dive_number, Integer, tag: "divenumber"
|
355
|
+
has_one :dive_number_of_day, Integer, tag: "divenumberofday"
|
356
|
+
has_one :internal_dive_number, Integer, tag: "internaldivenumber"
|
357
357
|
has_many :links, Link, tag: "link"
|
358
|
-
has_one :medication_before_dive, MedicationBeforeDive
|
359
|
-
has_one :no_suit, String
|
360
|
-
has_one :planned_profile, PlannedProfile
|
358
|
+
has_one :medication_before_dive, MedicationBeforeDive, tag: "medicationbeforedive"
|
359
|
+
has_one :no_suit, String, tag: "nosuit"
|
360
|
+
has_one :planned_profile, PlannedProfile, tag: "plannedprofile"
|
361
361
|
has_one :platform, String
|
362
362
|
has_one :price, Price
|
363
363
|
has_one :purpose, String
|
364
|
-
has_one :state_of_rest_before_dive, String
|
365
|
-
has_one :surface_interval_before_dive, SurfaceIntervalBeforeDive
|
366
|
-
has_one :surface_pressure, Float
|
367
|
-
has_one :trip_membership, String
|
364
|
+
has_one :state_of_rest_before_dive, String, tag: "stateofrestbeforedive"
|
365
|
+
has_one :surface_interval_before_dive, SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
|
366
|
+
has_one :surface_pressure, Float, tag: "surfacepressure"
|
367
|
+
has_one :trip_membership, String, tag: "tripmembership"
|
368
368
|
end
|
369
369
|
|
370
370
|
class Rating
|
@@ -373,7 +373,7 @@ module UDDF
|
|
373
373
|
tag "rating"
|
374
374
|
|
375
375
|
has_one :datetime, DateTime
|
376
|
-
has_one :rating_value, Integer
|
376
|
+
has_one :rating_value, Integer, tag: "ratingvalue"
|
377
377
|
end
|
378
378
|
|
379
379
|
class GlobalAlarmsGiven
|
@@ -389,7 +389,7 @@ module UDDF
|
|
389
389
|
|
390
390
|
tag "equipmentused"
|
391
391
|
|
392
|
-
has_one :lead_quantity, Float
|
392
|
+
has_one :lead_quantity, Float, tag: "leadquantity"
|
393
393
|
has_many :links, Link, tag: "link"
|
394
394
|
end
|
395
395
|
|
@@ -401,31 +401,31 @@ module UDDF
|
|
401
401
|
has_one :notes, Notes
|
402
402
|
end
|
403
403
|
|
404
|
+
class Abundance
|
405
|
+
include HappyMapper
|
406
|
+
|
407
|
+
tag "abundance"
|
408
|
+
|
409
|
+
attribute :quality, String
|
410
|
+
attribute :occurrence, String
|
411
|
+
content :value, Integer
|
412
|
+
end
|
413
|
+
|
404
414
|
class Species
|
405
415
|
include HappyMapper
|
406
416
|
|
407
417
|
tag "species"
|
408
418
|
|
409
419
|
attribute :id, String
|
410
|
-
has_one :abundance,
|
420
|
+
has_one :abundance, Abundance
|
411
421
|
has_one :age, Integer
|
412
422
|
has_one :dominance, String
|
413
|
-
has_one :life_stage, String
|
423
|
+
has_one :life_stage, String, tag: "lifestage"
|
414
424
|
has_one :notes, Notes
|
415
|
-
has_one :scientific_name, String
|
425
|
+
has_one :scientific_name, String, tag: "scientificname"
|
416
426
|
has_one :sex, String
|
417
427
|
has_one :size, Float
|
418
|
-
has_one :trivial_name, String
|
419
|
-
end
|
420
|
-
|
421
|
-
class Abundance
|
422
|
-
include HappyMapper
|
423
|
-
|
424
|
-
tag "abundance"
|
425
|
-
|
426
|
-
attribute :quality, String
|
427
|
-
attribute :occurrence, String
|
428
|
-
attribute :value, Integer
|
428
|
+
has_one :trivial_name, String, tag: "trivialname"
|
429
429
|
end
|
430
430
|
|
431
431
|
class WithSpecies
|
@@ -446,7 +446,7 @@ module UDDF
|
|
446
446
|
has_one :crustacea, WithSpecies
|
447
447
|
has_one :ctenophora, WithSpecies
|
448
448
|
has_one :echinodermata, WithSpecies
|
449
|
-
has_one :invertebrata_various, WithSpecies
|
449
|
+
has_one :invertebrata_various, WithSpecies, tag: "invertebratavarious"
|
450
450
|
has_one :mollusca, WithSpecies
|
451
451
|
has_one :phoronidea, WithSpecies
|
452
452
|
has_one :plathelminthes, WithSpecies
|
@@ -463,7 +463,7 @@ module UDDF
|
|
463
463
|
has_one :mammalia, WithSpecies
|
464
464
|
has_one :osteichthyes, WithSpecies
|
465
465
|
has_one :reptilia, WithSpecies
|
466
|
-
has_one :vertebrata_various, WithSpecies
|
466
|
+
has_one :vertebrata_various, WithSpecies, tag: "vertebratavarious"
|
467
467
|
end
|
468
468
|
|
469
469
|
class Fauna
|
@@ -482,7 +482,7 @@ module UDDF
|
|
482
482
|
tag "flora"
|
483
483
|
|
484
484
|
has_one :chlorophyceae, WithSpecies
|
485
|
-
has_one :flora_various, WithSpecies
|
485
|
+
has_one :flora_various, WithSpecies, tag: "floravarious"
|
486
486
|
has_one :notes, Notes
|
487
487
|
has_one :phaeophyceae, WithSpecies
|
488
488
|
has_one :rhodophyceae, WithSpecies
|
@@ -504,28 +504,28 @@ module UDDF
|
|
504
504
|
|
505
505
|
tag "informationafterdive"
|
506
506
|
|
507
|
-
has_one :any_symptoms, AnySymptoms
|
508
|
-
has_one :average_depth, Float
|
507
|
+
has_one :any_symptoms, AnySymptoms, tag: "anysymptoms"
|
508
|
+
has_one :average_depth, Float, tag: "averagedepth"
|
509
509
|
has_one :current, String
|
510
|
-
has_one :desaturation_time, Float
|
511
|
-
has_one :dive_duration, Float
|
512
|
-
has_one :dive_plan, String
|
513
|
-
has_one :dive_table, String
|
514
|
-
has_one :equipment_malfunction, String
|
515
|
-
has_one :equipment_used, EquipmentUsed
|
516
|
-
has_one :global_alarms_given, GlobalAlarmsGiven
|
517
|
-
has_one :greatest_depth, Float
|
518
|
-
has_one :highest_po2, Float
|
519
|
-
has_one :lowest_temperature, Float
|
520
|
-
has_one :no_flight_time, Float
|
510
|
+
has_one :desaturation_time, Float, tag: "desaturationtime"
|
511
|
+
has_one :dive_duration, Float, tag: "diveduration"
|
512
|
+
has_one :dive_plan, String, tag: "diveplan"
|
513
|
+
has_one :dive_table, String, tag: "divetable"
|
514
|
+
has_one :equipment_malfunction, String, tag: "equipmentmalfunction"
|
515
|
+
has_one :equipment_used, EquipmentUsed, tag: "equipmentused"
|
516
|
+
has_one :global_alarms_given, GlobalAlarmsGiven, tag: "globalalarmsgiven"
|
517
|
+
has_one :greatest_depth, Float, tag: "greatestdepth"
|
518
|
+
has_one :highest_po2, Float, tag: "highestpo2"
|
519
|
+
has_one :lowest_temperature, Float, tag: "lowesttemperature"
|
520
|
+
has_one :no_flight_time, Float, tag: "noflighttime"
|
521
521
|
has_one :notes, Notes
|
522
522
|
has_one :observations, Observations
|
523
|
-
has_one :pressure_drop, Float
|
523
|
+
has_one :pressure_drop, Float, tag: "pressuredrop"
|
524
524
|
has_many :problems, String, tag: "problems"
|
525
525
|
has_one :program, String
|
526
526
|
has_many :ratings, Rating, tag: "rating"
|
527
|
-
has_one :surface_interval_after_dive, SurfaceIntervalAfterDive
|
528
|
-
has_one :thermal_comfort, String
|
527
|
+
has_one :surface_interval_after_dive, SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
|
528
|
+
has_one :thermal_comfort, String, tag: "thermalcomfort"
|
529
529
|
has_one :visibility, Float
|
530
530
|
has_one :workload, String
|
531
531
|
end
|
@@ -544,11 +544,11 @@ module UDDF
|
|
544
544
|
tag "tankdata"
|
545
545
|
|
546
546
|
attribute :id, String
|
547
|
-
has_one :breathing_consumption_volume, Float
|
547
|
+
has_one :breathing_consumption_volume, Float, tag: "breathingconsumptionvolume"
|
548
548
|
has_many :links, Link, tag: "link"
|
549
|
-
has_one :tank_pressure_begin, Float
|
550
|
-
has_one :tank_pressure_end, Float
|
551
|
-
has_one :tank_volume, Float
|
549
|
+
has_one :tank_pressure_begin, Float, tag: "tankpressurebegin"
|
550
|
+
has_one :tank_pressure_end, Float, tag: "tankpressureend"
|
551
|
+
has_one :tank_volume, Float, tag: "tankvolume"
|
552
552
|
end
|
553
553
|
|
554
554
|
class Hargikas
|
@@ -558,9 +558,9 @@ module UDDF
|
|
558
558
|
|
559
559
|
has_one :ambient, Float
|
560
560
|
has_many :tissues, Tissue, tag: "tissue"
|
561
|
-
has_one :arterial_micro_bubble_level, Integer
|
562
|
-
has_one :intrapulmonary_right_left_shunt, Float
|
563
|
-
has_one :estimated_skin_cool_level, Integer
|
561
|
+
has_one :arterial_micro_bubble_level, Integer, tag: "arterialmicrobubbleLevel"
|
562
|
+
has_one :intrapulmonary_right_left_shunt, Float, tag: "intrapulmonaryrightleftshunt"
|
563
|
+
has_one :estimated_skin_cool_level, Integer, tag: "estimatedskincoolLevel"
|
564
564
|
end
|
565
565
|
|
566
566
|
class ApplicationData
|
@@ -568,7 +568,7 @@ module UDDF
|
|
568
568
|
|
569
569
|
tag "applicationdata"
|
570
570
|
|
571
|
-
has_one :deco_trainer, String
|
571
|
+
has_one :deco_trainer, String, tag: "decotrainer"
|
572
572
|
has_one :hargikas, Hargikas
|
573
573
|
end
|
574
574
|
|
@@ -578,9 +578,9 @@ module UDDF
|
|
578
578
|
tag "dive"
|
579
579
|
|
580
580
|
attribute :id, String
|
581
|
-
has_one :information_after_dive, InformationAfterDive
|
582
|
-
has_one :information_before_dive, InformationBeforeDive
|
583
|
-
has_one :application_data, ApplicationData
|
581
|
+
has_one :information_after_dive, InformationAfterDive, tag: "informationafterdive"
|
582
|
+
has_one :information_before_dive, InformationBeforeDive, tag: "informationbeforedive"
|
583
|
+
has_one :application_data, ApplicationData, tag: "applicationdata"
|
584
584
|
has_one :samples, Samples
|
585
585
|
has_many :tank_data, TankData, tag: "tankdata"
|
586
586
|
end
|
@@ -642,8 +642,8 @@ module UDDF
|
|
642
642
|
tag "output"
|
643
643
|
|
644
644
|
has_one :lingo, String
|
645
|
-
has_one :file_format, String
|
646
|
-
has_one :file_name, String
|
645
|
+
has_one :file_format, String, tag: "fileformat"
|
646
|
+
has_one :file_name, String, tag: "filename"
|
647
647
|
has_one :headline, String
|
648
648
|
has_one :remark, String
|
649
649
|
end
|
@@ -653,17 +653,17 @@ module UDDF
|
|
653
653
|
|
654
654
|
tag "profile"
|
655
655
|
|
656
|
-
has_one :application_data, ApplicationData
|
657
|
-
has_one :deco_model, DecoModel
|
658
|
-
has_one :deep_stop_time, Float
|
656
|
+
has_one :application_data, ApplicationData, tag: "applicationdata"
|
657
|
+
has_one :deco_model, DecoModel, tag: "decomodel"
|
658
|
+
has_one :deep_stop_time, Float, tag: "deepstoptime"
|
659
659
|
has_one :density, Float
|
660
|
-
has_one :input_profile, InputProfile
|
660
|
+
has_one :input_profile, InputProfile, tag: "inputprofile"
|
661
661
|
has_many :links, Link, tag: "link"
|
662
|
-
has_one :maximum_ascending_rate, Float
|
663
|
-
has_one :mix_change, MixChange
|
662
|
+
has_one :maximum_ascending_rate, Float, tag: "maximumascendingrate"
|
663
|
+
has_one :mix_change, MixChange, tag: "mixchange"
|
664
664
|
has_one :output, Output
|
665
|
-
has_one :surface_interval_after_dive, SurfaceIntervalAfterDive
|
666
|
-
has_one :surface_interval_before_dive, SurfaceIntervalBeforeDive
|
665
|
+
has_one :surface_interval_after_dive, SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
|
666
|
+
has_one :surface_interval_before_dive, SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
|
667
667
|
has_one :title, String
|
668
668
|
end
|
669
669
|
|
@@ -673,13 +673,13 @@ module UDDF
|
|
673
673
|
tag "tablescope"
|
674
674
|
|
675
675
|
has_one :altitude, Float
|
676
|
-
has_one :bottom_time_maximum, Float
|
677
|
-
has_one :bottom_time_minimum, Float
|
678
|
-
has_one :bottom_time_step_begin, Float
|
679
|
-
has_one :bottom_time_step_end, Float
|
680
|
-
has_one :dive_depth_begin, Float
|
681
|
-
has_one :dive_depth_end, Float
|
682
|
-
has_one :dive_depth_step, Float
|
676
|
+
has_one :bottom_time_maximum, Float, tag: "bottomtimemaximum"
|
677
|
+
has_one :bottom_time_minimum, Float, tag: "bottomtimeminimum"
|
678
|
+
has_one :bottom_time_step_begin, Float, tag: "bottomtimestepbegin"
|
679
|
+
has_one :bottom_time_step_end, Float, tag: "bottomtimestepend"
|
680
|
+
has_one :dive_depth_begin, Float, tag: "divedepthbegin"
|
681
|
+
has_one :dive_depth_end, Float, tag: "divedepthend"
|
682
|
+
has_one :dive_depth_step, Float, tag: "divedepthstep"
|
683
683
|
end
|
684
684
|
|
685
685
|
class Table
|
@@ -687,7 +687,7 @@ module UDDF
|
|
687
687
|
|
688
688
|
tag "table"
|
689
689
|
|
690
|
-
has_one :table_scope, TableScope
|
690
|
+
has_one :table_scope, TableScope, tag: "tablescope"
|
691
691
|
end
|
692
692
|
|
693
693
|
class CalculateProfile
|
@@ -711,16 +711,16 @@ module UDDF
|
|
711
711
|
|
712
712
|
tag "bottomtimetablescope"
|
713
713
|
|
714
|
-
has_one :breathing_consumption_volume_begin, Float
|
715
|
-
has_one :breathing_consumption_volume_end, Float
|
716
|
-
has_one :breathing_consumption_volume_step, Float
|
717
|
-
has_one :dive_depth_begin, Float
|
718
|
-
has_one :dive_depth_end, Float
|
719
|
-
has_one :dive_depth_step, Float
|
720
|
-
has_one :tank_pressure_begin, Float
|
721
|
-
has_one :tank_pressure_reserve, Float
|
722
|
-
has_one :tank_volume_begin, Float
|
723
|
-
has_one :tank_volume_end, Float
|
714
|
+
has_one :breathing_consumption_volume_begin, Float, tag: "breathingconsumptionvolumebegin"
|
715
|
+
has_one :breathing_consumption_volume_end, Float, tag: "breathingconsumptionvolumeend"
|
716
|
+
has_one :breathing_consumption_volume_step, Float, tag: "breathingconsumptionvolumestep"
|
717
|
+
has_one :dive_depth_begin, Float, tag: "divedepthbegin"
|
718
|
+
has_one :dive_depth_end, Float, tag: "divedepthend"
|
719
|
+
has_one :dive_depth_step, Float, tag: "divedepthstep"
|
720
|
+
has_one :tank_pressure_begin, Float, tag: "tankpressurebegin"
|
721
|
+
has_one :tank_pressure_reserve, Float, tag: "tankpressurereserve"
|
722
|
+
has_one :tank_volume_begin, Float, tag: "tankvolumebegin"
|
723
|
+
has_one :tank_volume_end, Float, tag: "tankvolumeend"
|
724
724
|
end
|
725
725
|
|
726
726
|
class BottomTimeTable
|
@@ -729,8 +729,8 @@ module UDDF
|
|
729
729
|
tag "bottomtimetable"
|
730
730
|
|
731
731
|
attribute :id, String
|
732
|
-
has_one :application_data, ApplicationData
|
733
|
-
has_one :bottom_time_table_scope, BottomTimeTableScope
|
732
|
+
has_one :application_data, ApplicationData, tag: "applicationdata"
|
733
|
+
has_one :bottom_time_table_scope, BottomTimeTableScope, tag: "bottomtimetablescope"
|
734
734
|
has_many :links, Link, tag: "link"
|
735
735
|
has_one :output, Output
|
736
736
|
has_one :title, String
|
@@ -749,9 +749,9 @@ module UDDF
|
|
749
749
|
|
750
750
|
tag "tablegeneration"
|
751
751
|
|
752
|
-
has_one :calculate_bottom_time_table, CalculateBottomTimeTable
|
753
|
-
has_one :calculate_profile, CalculateProfile
|
754
|
-
has_one :calculate_table, CalculateTable
|
752
|
+
has_one :calculate_bottom_time_table, CalculateBottomTimeTable, tag: "calculatebottomtimetable"
|
753
|
+
has_one :calculate_profile, CalculateProfile, tag: "calculateprofile"
|
754
|
+
has_one :calculate_table, CalculateTable, tag: "calculatetable"
|
755
755
|
end
|
756
756
|
|
757
757
|
class ImageData
|
@@ -761,12 +761,12 @@ module UDDF
|
|
761
761
|
|
762
762
|
has_one :aperture, Float
|
763
763
|
has_one :datetime, DateTime
|
764
|
-
has_one :exposure_compensation, Float
|
765
|
-
has_one :film_speed, Integer
|
766
|
-
has_one :focal_length, Float
|
767
|
-
has_one :focusing_distance, Float
|
768
|
-
has_one :metering_method, String
|
769
|
-
has_one :shutter_speed, Float
|
764
|
+
has_one :exposure_compensation, Float, tag: "exposurecompensation"
|
765
|
+
has_one :film_speed, Integer, tag: "filmspeed"
|
766
|
+
has_one :focal_length, Float, tag: "focallength"
|
767
|
+
has_one :focusing_distance, Float, tag: "focusingdistance"
|
768
|
+
has_one :metering_method, String, tag: "meteringmethod"
|
769
|
+
has_one :shutter_speed, Float, tag: "shutterspeed"
|
770
770
|
end
|
771
771
|
|
772
772
|
class Image
|
@@ -778,8 +778,8 @@ module UDDF
|
|
778
778
|
attribute :height, Integer
|
779
779
|
attribute :width, Integer
|
780
780
|
attribute :format, String
|
781
|
-
has_one :image_data, ImageData
|
782
|
-
has_one :object_name, String
|
781
|
+
has_one :image_data, ImageData, tag: "imagedata"
|
782
|
+
has_one :object_name, String, tag: "objectname"
|
783
783
|
has_one :title, String
|
784
784
|
end
|
785
785
|
|
@@ -789,7 +789,7 @@ module UDDF
|
|
789
789
|
tag "video"
|
790
790
|
|
791
791
|
attribute :id, String
|
792
|
-
has_one :object_name, String
|
792
|
+
has_one :object_name, String, tag: "objectname"
|
793
793
|
has_one :title, String
|
794
794
|
end
|
795
795
|
|
@@ -799,7 +799,7 @@ module UDDF
|
|
799
799
|
tag "audio"
|
800
800
|
|
801
801
|
attribute :id, String
|
802
|
-
has_one :object_name, String
|
802
|
+
has_one :object_name, String, tag: "objectname"
|
803
803
|
has_one :title, String
|
804
804
|
end
|
805
805
|
|
@@ -827,8 +827,8 @@ module UDDF
|
|
827
827
|
tag "pricedivepackage"
|
828
828
|
|
829
829
|
attribute :currency, String
|
830
|
-
attribute :no_of_dives, Integer
|
831
|
-
|
830
|
+
attribute :no_of_dives, Integer, tag: "noofdives"
|
831
|
+
content :value, Float
|
832
832
|
end
|
833
833
|
|
834
834
|
class RelatedDives
|
@@ -857,14 +857,14 @@ module UDDF
|
|
857
857
|
tag "vessel"
|
858
858
|
|
859
859
|
has_one :address, Base::Models::Address
|
860
|
-
|
860
|
+
has_many :alias_names, String, tag: "aliasname"
|
861
861
|
has_one :contact, Base::Models::Contact
|
862
862
|
has_one :marina, String
|
863
863
|
has_one :name, String
|
864
864
|
has_one :notes, Notes
|
865
865
|
has_many :ratings, Rating, tag: "rating"
|
866
|
-
has_one :ship_dimension, ShipDimension
|
867
|
-
has_one :ship_type, String
|
866
|
+
has_one :ship_dimension, ShipDimension, tag: "shipdimension"
|
867
|
+
has_one :ship_type, String, tag: "shiptype"
|
868
868
|
end
|
869
869
|
|
870
870
|
class Operator
|
@@ -872,7 +872,7 @@ module UDDF
|
|
872
872
|
|
873
873
|
tag "operator"
|
874
874
|
|
875
|
-
|
875
|
+
has_many :alias_names, String, tag: "aliasname"
|
876
876
|
has_one :address, Base::Models::Address
|
877
877
|
has_one :contact, Base::Models::Contact
|
878
878
|
has_one :name, String
|
@@ -885,8 +885,8 @@ module UDDF
|
|
885
885
|
|
886
886
|
tag "dateoftrip"
|
887
887
|
|
888
|
-
attribute :start_date, DateTime
|
889
|
-
attribute :end_date, DateTime
|
888
|
+
attribute :start_date, DateTime, tag: "startdate"
|
889
|
+
attribute :end_date, DateTime, tag: "enddate"
|
890
890
|
end
|
891
891
|
|
892
892
|
class Accommodation
|
@@ -895,7 +895,7 @@ module UDDF
|
|
895
895
|
tag "accommodation"
|
896
896
|
|
897
897
|
has_one :address, Base::Models::Address
|
898
|
-
|
898
|
+
has_many :alias_names, String, tag: "aliasname"
|
899
899
|
has_one :category, String
|
900
900
|
has_one :contact, Base::Models::Contact
|
901
901
|
has_one :name, String
|
@@ -913,7 +913,7 @@ module UDDF
|
|
913
913
|
has_one :latitude, Float
|
914
914
|
has_one :location, String
|
915
915
|
has_one :longitude, Float
|
916
|
-
has_one :time_zone, Float
|
916
|
+
has_one :time_zone, Float, tag: "timezone"
|
917
917
|
end
|
918
918
|
|
919
919
|
class TripPart
|
@@ -923,15 +923,15 @@ module UDDF
|
|
923
923
|
|
924
924
|
attribute :type, String
|
925
925
|
has_one :accommodation, Accommodation
|
926
|
-
has_one :date_of_trip, DateOfTrip
|
926
|
+
has_one :date_of_trip, DateOfTrip, tag: "dateoftrip"
|
927
927
|
has_one :geography, Geography
|
928
928
|
has_many :links, Link, tag: "link"
|
929
929
|
has_one :name, String
|
930
930
|
has_one :notes, Notes
|
931
931
|
has_one :operator, Operator
|
932
|
-
has_one :price_dive_package, PriceDivePackage
|
933
|
-
has_one :price_per_dive, Price
|
934
|
-
has_one :related_dives, RelatedDives
|
932
|
+
has_one :price_dive_package, PriceDivePackage, tag: "pricedivepackage"
|
933
|
+
has_one :price_per_dive, Price, tag: "priceperdive"
|
934
|
+
has_one :related_dives, RelatedDives, tag: "relateddives"
|
935
935
|
has_one :vessel, Vessel
|
936
936
|
end
|
937
937
|
|
@@ -941,7 +941,7 @@ module UDDF
|
|
941
941
|
tag "trip"
|
942
942
|
|
943
943
|
attribute :id, String
|
944
|
-
|
944
|
+
has_many :alias_names, String, tag: "aliasname"
|
945
945
|
has_one :name, String
|
946
946
|
has_many :ratings, Rating, tag: "rating"
|
947
947
|
has_many :trip_parts, TripPart, tag: "trippart"
|
@@ -969,8 +969,8 @@ module UDDF
|
|
969
969
|
|
970
970
|
tag "built"
|
971
971
|
|
972
|
-
has_one :launching_date,
|
973
|
-
has_one :ship_yard, String
|
972
|
+
has_one :launching_date, Base::Models::DateTimeField, tag: "launchingdate"
|
973
|
+
has_one :ship_yard, String, tag: "shipyard"
|
974
974
|
end
|
975
975
|
|
976
976
|
class Wreck
|
@@ -978,13 +978,13 @@ module UDDF
|
|
978
978
|
|
979
979
|
tag "wreck"
|
980
980
|
|
981
|
-
|
981
|
+
has_many :alias_names, String, tag: "aliasname"
|
982
982
|
has_one :built, Built
|
983
983
|
has_one :name, String
|
984
984
|
has_one :nationality, String
|
985
|
-
has_one :ship_dimension, ShipDimension
|
986
|
-
has_one :ship_type, String
|
987
|
-
has_one :sunk,
|
985
|
+
has_one :ship_dimension, ShipDimension, tag: "shipdimension"
|
986
|
+
has_one :ship_type, String, tag: "shiptype"
|
987
|
+
has_one :sunk, Base::Models::DateTimeField
|
988
988
|
end
|
989
989
|
|
990
990
|
class Shore
|
@@ -993,7 +993,7 @@ module UDDF
|
|
993
993
|
tag "shore"
|
994
994
|
|
995
995
|
attribute :id, String
|
996
|
-
|
996
|
+
has_many :alias_names, String, tag: "aliasname"
|
997
997
|
has_one :name, String
|
998
998
|
has_one :notes, Notes
|
999
999
|
end
|
@@ -1004,7 +1004,7 @@ module UDDF
|
|
1004
1004
|
tag "river"
|
1005
1005
|
|
1006
1006
|
attribute :id, String
|
1007
|
-
|
1007
|
+
has_many :alias_names, String, tag: "aliasname"
|
1008
1008
|
has_one :name, String
|
1009
1009
|
has_one :notes, Notes
|
1010
1010
|
end
|
@@ -1015,7 +1015,7 @@ module UDDF
|
|
1015
1015
|
tag "lake"
|
1016
1016
|
|
1017
1017
|
attribute :id, String
|
1018
|
-
|
1018
|
+
has_many :alias_names, String, tag: "aliasname"
|
1019
1019
|
has_one :name, String
|
1020
1020
|
has_one :notes, Notes
|
1021
1021
|
end
|
@@ -1026,7 +1026,7 @@ module UDDF
|
|
1026
1026
|
tag "indoor"
|
1027
1027
|
|
1028
1028
|
has_one :address, Base::Models::Address
|
1029
|
-
|
1029
|
+
has_many :alias_names, String, tag: "aliasname"
|
1030
1030
|
has_one :contact, Base::Models::Contact
|
1031
1031
|
has_one :name, String
|
1032
1032
|
has_one :notes, Notes
|
@@ -1038,7 +1038,7 @@ module UDDF
|
|
1038
1038
|
tag "cave"
|
1039
1039
|
|
1040
1040
|
attribute :id, String
|
1041
|
-
|
1041
|
+
has_many :alias_names, String, tag: "aliasname"
|
1042
1042
|
has_one :name, String
|
1043
1043
|
has_one :notes, Notes
|
1044
1044
|
end
|
@@ -1048,19 +1048,19 @@ module UDDF
|
|
1048
1048
|
|
1049
1049
|
tag "sidedata"
|
1050
1050
|
|
1051
|
-
has_one :area_length, Float
|
1052
|
-
has_one :area_width, Float
|
1053
|
-
has_one :average_visibility, Float
|
1051
|
+
has_one :area_length, Float, tag: "arealength"
|
1052
|
+
has_one :area_width, Float, tag: "areawidth"
|
1053
|
+
has_one :average_visibility, Float, tag: "averagevisibility"
|
1054
1054
|
has_one :bottom, String
|
1055
1055
|
has_one :cave, Cave
|
1056
1056
|
has_one :density, Float
|
1057
1057
|
has_one :difficulty, Integer
|
1058
|
-
has_one :global_light_intensity, String
|
1058
|
+
has_one :global_light_intensity, String, tag: "globallightintensity"
|
1059
1059
|
has_one :indoor, Indoor
|
1060
|
-
has_one :maximum_depth, Float
|
1061
|
-
has_one :maximum_visibility, Float
|
1062
|
-
has_one :minimum_depth, Float
|
1063
|
-
has_one :minimum_visibility, Float
|
1060
|
+
has_one :maximum_depth, Float, tag: "maximumdepth"
|
1061
|
+
has_one :maximum_visibility, Float, tag: "maximumvisibility"
|
1062
|
+
has_one :minimum_depth, Float, tag: "minimumdepth"
|
1063
|
+
has_one :minimum_visibility, Float, tag: "minimumvisibility"
|
1064
1064
|
has_one :river, River
|
1065
1065
|
has_one :shore, Shore
|
1066
1066
|
has_one :terrain, String
|
@@ -1073,7 +1073,7 @@ module UDDF
|
|
1073
1073
|
tag "site"
|
1074
1074
|
|
1075
1075
|
attribute :id, String
|
1076
|
-
|
1076
|
+
has_many :alias_names, String, tag: "aliasname"
|
1077
1077
|
has_one :ecology, Ecology
|
1078
1078
|
has_one :environment, String
|
1079
1079
|
has_one :geography, Geography
|
@@ -1081,7 +1081,7 @@ module UDDF
|
|
1081
1081
|
has_one :name, String
|
1082
1082
|
has_one :notes, Notes
|
1083
1083
|
has_many :ratings, Rating, tag: "rating"
|
1084
|
-
has_one :side_data, SiteData
|
1084
|
+
has_one :side_data, SiteData, tag: "sitedata"
|
1085
1085
|
end
|
1086
1086
|
|
1087
1087
|
class Guide
|
@@ -1099,14 +1099,14 @@ module UDDF
|
|
1099
1099
|
|
1100
1100
|
attribute :id, String
|
1101
1101
|
has_one :address, Base::Models::Address
|
1102
|
-
|
1102
|
+
has_many :alias_names, String, tag: "aliasname"
|
1103
1103
|
has_one :contact, Base::Models::Contact
|
1104
1104
|
has_many :guides, Guide, tag: "guide"
|
1105
1105
|
has_many :links, Link, tag: "link"
|
1106
1106
|
has_one :name, String
|
1107
1107
|
has_one :notes, Notes
|
1108
|
-
has_one :price_dive_package, PriceDivePackage
|
1109
|
-
has_one :price_per_dive, Price
|
1108
|
+
has_one :price_dive_package, PriceDivePackage, tag: "pricedivepackage"
|
1109
|
+
has_one :price_per_dive, Price, tag: "priceperdive"
|
1110
1110
|
has_many :ratings, Rating, tag: "rating"
|
1111
1111
|
end
|
1112
1112
|
|
@@ -1124,7 +1124,7 @@ module UDDF
|
|
1124
1124
|
|
1125
1125
|
tag "shop"
|
1126
1126
|
|
1127
|
-
|
1127
|
+
has_many :alias_names, String, tag: "aliasname"
|
1128
1128
|
has_one :address, Base::Models::Address
|
1129
1129
|
has_one :contact, Base::Models::Contact
|
1130
1130
|
has_one :name, String
|
@@ -1145,7 +1145,7 @@ module UDDF
|
|
1145
1145
|
tag "membership"
|
1146
1146
|
|
1147
1147
|
attribute :organisation, String
|
1148
|
-
attribute :member_id, String
|
1148
|
+
attribute :member_id, String, tag: "memberid"
|
1149
1149
|
end
|
1150
1150
|
|
1151
1151
|
class NumberOfDives
|
@@ -1153,8 +1153,8 @@ module UDDF
|
|
1153
1153
|
|
1154
1154
|
tag "numberofdives"
|
1155
1155
|
|
1156
|
-
has_one :start_date,
|
1157
|
-
has_one :end_date,
|
1156
|
+
has_one :start_date, DateTime, tag: "startdate"
|
1157
|
+
has_one :end_date, DateTime, tag: "enddate"
|
1158
1158
|
has_one :dives, Integer
|
1159
1159
|
end
|
1160
1160
|
|
@@ -1163,16 +1163,16 @@ module UDDF
|
|
1163
1163
|
|
1164
1164
|
tag "personal"
|
1165
1165
|
|
1166
|
-
has_one :birth_date,
|
1167
|
-
has_one :birth_name, String
|
1168
|
-
has_one :blood_group, String
|
1169
|
-
has_one :first_name, String
|
1166
|
+
has_one :birth_date, Base::Models::DateTimeField, tag: "birthdate"
|
1167
|
+
has_one :birth_name, String, tag: "birthname"
|
1168
|
+
has_one :blood_group, String, tag: "bloodgroup"
|
1169
|
+
has_one :first_name, String, tag: "firstname"
|
1170
1170
|
has_one :height, Float
|
1171
1171
|
has_one :honorific, String
|
1172
|
-
has_one :last_name, String
|
1172
|
+
has_one :last_name, String, tag: "lastname"
|
1173
1173
|
has_one :membership, Membership
|
1174
|
-
has_one :middle_name, String
|
1175
|
-
has_one :number_of_dives, NumberOfDives
|
1174
|
+
has_one :middle_name, String, tag: "middlename"
|
1175
|
+
has_one :number_of_dives, NumberOfDives, tag: "numberofdives"
|
1176
1176
|
has_one :sex, String
|
1177
1177
|
has_one :smoking, String
|
1178
1178
|
has_one :weight, Float
|
@@ -1193,14 +1193,14 @@ module UDDF
|
|
1193
1193
|
|
1194
1194
|
tag "certification"
|
1195
1195
|
|
1196
|
-
has_one :certificate_number, String
|
1196
|
+
has_one :certificate_number, String, tag: "certificatenumber"
|
1197
1197
|
has_one :instructor, Instructor
|
1198
|
-
has_one :issue_date,
|
1198
|
+
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1199
1199
|
has_one :level, String
|
1200
1200
|
has_one :link, Link
|
1201
1201
|
has_one :organization, String
|
1202
1202
|
has_one :specialty, String
|
1203
|
-
has_one :valid_date,
|
1203
|
+
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1204
1204
|
end
|
1205
1205
|
|
1206
1206
|
class Education
|
@@ -1216,11 +1216,11 @@ module UDDF
|
|
1216
1216
|
|
1217
1217
|
tag "insurance"
|
1218
1218
|
|
1219
|
-
|
1220
|
-
has_one :issue_date,
|
1219
|
+
has_many :alias_names, String, tag: "aliasname"
|
1220
|
+
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1221
1221
|
has_one :name, String
|
1222
1222
|
has_one :notes, Notes
|
1223
|
-
has_one :valid_date,
|
1223
|
+
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1224
1224
|
end
|
1225
1225
|
|
1226
1226
|
class DiveInsurances
|
@@ -1236,12 +1236,12 @@ module UDDF
|
|
1236
1236
|
|
1237
1237
|
tag "permit"
|
1238
1238
|
|
1239
|
-
|
1240
|
-
has_one :issue_date,
|
1239
|
+
has_many :alias_names, String, tag: "aliasname"
|
1240
|
+
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1241
1241
|
has_one :name, String
|
1242
1242
|
has_one :notes, Notes
|
1243
1243
|
has_one :region, String
|
1244
|
-
has_one :valid_date,
|
1244
|
+
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1245
1245
|
end
|
1246
1246
|
|
1247
1247
|
class DivePermissions
|
@@ -1269,53 +1269,49 @@ module UDDF
|
|
1269
1269
|
tag "equipmentpart"
|
1270
1270
|
|
1271
1271
|
attribute :id, String
|
1272
|
-
|
1272
|
+
has_many :alias_names, String, tag: "aliasname"
|
1273
1273
|
has_many :links, Link, tag: "link"
|
1274
1274
|
has_one :manufacturer, Manufacturer
|
1275
1275
|
has_one :model, String
|
1276
1276
|
has_one :name, String
|
1277
|
-
has_one :next_service_date,
|
1277
|
+
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
1278
1278
|
has_one :notes, Notes
|
1279
1279
|
has_one :purchase, Purchase
|
1280
|
-
has_one :serial_number, String
|
1281
|
-
has_one :service_interval, Integer
|
1280
|
+
has_one :serial_number, String, tag: "serialnumber"
|
1281
|
+
has_one :service_interval, Integer, tag: "serviceinterval"
|
1282
1282
|
end
|
1283
1283
|
|
1284
|
-
class Lead
|
1284
|
+
class Lead < EquipmentPart
|
1285
1285
|
include HappyMapper
|
1286
1286
|
|
1287
1287
|
tag "lead"
|
1288
1288
|
|
1289
|
-
has_one :
|
1290
|
-
has_one :lead_quantity, Integer
|
1289
|
+
has_one :lead_quantity, Integer, tag: "leadquantity"
|
1291
1290
|
end
|
1292
1291
|
|
1293
|
-
class Rebreather
|
1292
|
+
class Rebreather < EquipmentPart
|
1294
1293
|
include HappyMapper
|
1295
1294
|
|
1296
1295
|
tag "rebreather"
|
1297
1296
|
|
1298
|
-
has_one :equipment_part, EquipmentPart
|
1299
1297
|
has_many :o2_sensors, EquipmentPart, tag: "o2sensor"
|
1300
1298
|
end
|
1301
1299
|
|
1302
|
-
class Suit
|
1300
|
+
class Suit < EquipmentPart
|
1303
1301
|
include HappyMapper
|
1304
1302
|
|
1305
1303
|
tag "suit"
|
1306
1304
|
|
1307
|
-
has_one :
|
1308
|
-
has_one :suit_type, String
|
1305
|
+
has_one :suit_type, String, tag: "suittype"
|
1309
1306
|
end
|
1310
1307
|
|
1311
|
-
class Tank
|
1308
|
+
class Tank < EquipmentPart
|
1312
1309
|
include HappyMapper
|
1313
1310
|
|
1314
1311
|
tag "tank"
|
1315
1312
|
|
1316
|
-
has_one :
|
1317
|
-
has_one :
|
1318
|
-
has_one :tank_volume, Float
|
1313
|
+
has_one :tank_material, String, tag: "tankmaterial"
|
1314
|
+
has_one :tank_volume, Float, tag: "tankvolume"
|
1319
1315
|
end
|
1320
1316
|
|
1321
1317
|
class Camera
|
@@ -1329,15 +1325,9 @@ module UDDF
|
|
1329
1325
|
has_one :lens, EquipmentPart
|
1330
1326
|
end
|
1331
1327
|
|
1332
|
-
class
|
1328
|
+
class EquipmentContent
|
1333
1329
|
include HappyMapper
|
1334
1330
|
|
1335
|
-
tag "equipmentconfiguration"
|
1336
|
-
|
1337
|
-
has_one :alias_name, String
|
1338
|
-
has_many :links, Link, tag: "link"
|
1339
|
-
has_one :name, String
|
1340
|
-
has_one :notes, Notes
|
1341
1331
|
has_many :boots, EquipmentPart, tag: "boots"
|
1342
1332
|
has_many :buoyancy_control_devices, EquipmentPart, tag: "buoyancycontroldevice"
|
1343
1333
|
has_many :cameras, Camera, tag: "camera"
|
@@ -1359,32 +1349,24 @@ module UDDF
|
|
1359
1349
|
has_many :watches, EquipmentPart, tag: "watch"
|
1360
1350
|
end
|
1361
1351
|
|
1362
|
-
class
|
1352
|
+
class EquipmentConfiguration < EquipmentContent
|
1353
|
+
include HappyMapper
|
1354
|
+
|
1355
|
+
tag "equipmentconfiguration"
|
1356
|
+
|
1357
|
+
has_many :alias_names, String, tag: "aliasname"
|
1358
|
+
has_many :links, Link, tag: "link"
|
1359
|
+
has_one :name, String
|
1360
|
+
has_one :notes, Notes
|
1361
|
+
end
|
1362
|
+
|
1363
|
+
class Equipment < EquipmentContent
|
1363
1364
|
include HappyMapper
|
1364
1365
|
|
1365
1366
|
tag "equipment"
|
1366
1367
|
|
1367
1368
|
has_many :compressors, EquipmentPart, tag: "compressor"
|
1368
|
-
has_one :equipment_configuration, EquipmentConfiguration
|
1369
|
-
has_many :boots, EquipmentPart, tag: "boots"
|
1370
|
-
has_many :buoyancy_control_devices, EquipmentPart, tag: "buoyancycontroldevice"
|
1371
|
-
has_many :cameras, Camera, tag: "camera"
|
1372
|
-
has_many :compasses, EquipmentPart, tag: "compass"
|
1373
|
-
has_many :dive_computers, EquipmentPart, tag: "divecomputer"
|
1374
|
-
has_many :fins, EquipmentPart, tag: "fins"
|
1375
|
-
has_many :gloves, EquipmentPart, tag: "gloves"
|
1376
|
-
has_many :knives, EquipmentPart, tag: "knife"
|
1377
|
-
has_many :leads, Lead, tag: "lead"
|
1378
|
-
has_many :lights, EquipmentPart, tag: "light"
|
1379
|
-
has_many :masks, EquipmentPart, tag: "mask"
|
1380
|
-
has_many :rebreathers, Rebreather, tag: "rebreather"
|
1381
|
-
has_many :regulators, EquipmentPart, tag: "regulator"
|
1382
|
-
has_many :scooters, EquipmentPart, tag: "scooter"
|
1383
|
-
has_many :suits, Suit, tag: "suit"
|
1384
|
-
has_many :tanks, Tank, tag: "tank"
|
1385
|
-
has_many :various_pieces, EquipmentPart, tag: "variouspieces"
|
1386
|
-
has_many :video_cameras, EquipmentPart, tag: "videocamera"
|
1387
|
-
has_many :watches, EquipmentPart, tag: "watch"
|
1369
|
+
has_one :equipment_configuration, EquipmentConfiguration, tag: "equipmentconfiguration"
|
1388
1370
|
end
|
1389
1371
|
|
1390
1372
|
class Doctor
|
@@ -1405,11 +1387,11 @@ module UDDF
|
|
1405
1387
|
|
1406
1388
|
has_one :datetime, DateTime
|
1407
1389
|
has_one :doctor, Doctor
|
1408
|
-
has_one :examination_result, String
|
1390
|
+
has_one :examination_result, String, tag: "examinationresult"
|
1409
1391
|
has_many :links, Link, tag: "link"
|
1410
1392
|
has_one :notes, Notes
|
1411
|
-
has_one :total_lung_capacity, Float
|
1412
|
-
has_one :vital_capacity, Float
|
1393
|
+
has_one :total_lung_capacity, Float, tag: "totallungcapacity"
|
1394
|
+
has_one :vital_capacity, Float, tag: "vitalcapacity"
|
1413
1395
|
end
|
1414
1396
|
|
1415
1397
|
class Medical
|
@@ -1426,8 +1408,8 @@ module UDDF
|
|
1426
1408
|
attribute :id, String
|
1427
1409
|
has_one :address, Base::Models::Address
|
1428
1410
|
has_one :contact, Base::Models::Contact
|
1429
|
-
has_one :dive_insurances, DiveInsurances
|
1430
|
-
has_one :dive_permissions, DivePermissions
|
1411
|
+
has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
|
1412
|
+
has_one :dive_permissions, DivePermissions, tag: "divepermissions"
|
1431
1413
|
has_one :equipment, Equipment
|
1432
1414
|
has_one :medical, Medical
|
1433
1415
|
has_one :notes, Notes
|
@@ -1442,8 +1424,8 @@ module UDDF
|
|
1442
1424
|
attribute :id, String
|
1443
1425
|
has_one :address, Base::Models::Address
|
1444
1426
|
has_one :contact, Base::Models::Contact
|
1445
|
-
has_one :dive_insurances, DiveInsurances
|
1446
|
-
has_one :dive_permissions, DivePermissions
|
1427
|
+
has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
|
1428
|
+
has_one :dive_permissions, DivePermissions, tag: "divepermissions"
|
1447
1429
|
has_one :equipment, Equipment
|
1448
1430
|
has_one :medical, Medical
|
1449
1431
|
has_one :notes, Notes
|
@@ -1460,8 +1442,8 @@ module UDDF
|
|
1460
1442
|
attribute :id, String
|
1461
1443
|
has_one :address, Base::Models::Address
|
1462
1444
|
has_one :contact, Base::Models::Contact
|
1463
|
-
has_one :dive_insurances, DiveInsurances
|
1464
|
-
has_one :dive_permissions, DivePermissions
|
1445
|
+
has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
|
1446
|
+
has_one :dive_permissions, DivePermissions, tag: "divepermissions"
|
1465
1447
|
has_one :equipment, Equipment
|
1466
1448
|
has_one :medical, Medical
|
1467
1449
|
has_one :notes, Notes
|
@@ -1484,7 +1466,7 @@ module UDDF
|
|
1484
1466
|
tag "dcalarm"
|
1485
1467
|
|
1486
1468
|
has_one :acknowledge, String
|
1487
|
-
has_one :alarm_type, Integer
|
1469
|
+
has_one :alarm_type, Integer, tag: "alarmtype"
|
1488
1470
|
has_one :period, Float
|
1489
1471
|
end
|
1490
1472
|
|
@@ -1493,8 +1475,8 @@ module UDDF
|
|
1493
1475
|
|
1494
1476
|
tag "setdcdivedethalarm"
|
1495
1477
|
|
1496
|
-
has_one :dc_alarm, DCAlarm
|
1497
|
-
has_one :dc_alarm_depth, Float
|
1478
|
+
has_one :dc_alarm, DCAlarm, tag: "dcalarm"
|
1479
|
+
has_one :dc_alarm_depth, Float, tag: "dcalarmdepth"
|
1498
1480
|
end
|
1499
1481
|
|
1500
1482
|
class SetDCDivePo2Alarm
|
@@ -1502,8 +1484,8 @@ module UDDF
|
|
1502
1484
|
|
1503
1485
|
tag "setdcdivepo2alarm"
|
1504
1486
|
|
1505
|
-
has_one :dc_alarm, DCAlarm
|
1506
|
-
has_one :maximum_po2, Float
|
1487
|
+
has_one :dc_alarm, DCAlarm, tag: "dcalarm"
|
1488
|
+
has_one :maximum_po2, Float, tag: "maximumpo2"
|
1507
1489
|
end
|
1508
1490
|
|
1509
1491
|
class SetDCDiveSiteData
|
@@ -1511,7 +1493,7 @@ module UDDF
|
|
1511
1493
|
|
1512
1494
|
tag "setdcdivesitedata"
|
1513
1495
|
|
1514
|
-
attribute :dive_site, String
|
1496
|
+
attribute :dive_site, String, tag: "divesite"
|
1515
1497
|
end
|
1516
1498
|
|
1517
1499
|
class SetDCDiveTimeAlarm
|
@@ -1519,7 +1501,7 @@ module UDDF
|
|
1519
1501
|
|
1520
1502
|
tag "setdcdivetimealarm"
|
1521
1503
|
|
1522
|
-
has_one :dc_alarm, DCAlarm
|
1504
|
+
has_one :dc_alarm, DCAlarm, tag: "dcalarm"
|
1523
1505
|
has_one :timespan, Float
|
1524
1506
|
end
|
1525
1507
|
|
@@ -1528,7 +1510,7 @@ module UDDF
|
|
1528
1510
|
|
1529
1511
|
tag "setdcendndtalarm"
|
1530
1512
|
|
1531
|
-
has_one :dc_alarm, DCAlarm
|
1513
|
+
has_one :dc_alarm, DCAlarm, tag: "dcalarm"
|
1532
1514
|
end
|
1533
1515
|
|
1534
1516
|
class SetDCDecoModel
|
@@ -1536,8 +1518,8 @@ module UDDF
|
|
1536
1518
|
|
1537
1519
|
tag "setdcdecomodel"
|
1538
1520
|
|
1539
|
-
|
1540
|
-
has_one :application_data, ApplicationData
|
1521
|
+
has_many :alias_names, String, tag: "aliasname"
|
1522
|
+
has_one :application_data, ApplicationData, tag: "applicationdata"
|
1541
1523
|
has_one :name, String
|
1542
1524
|
end
|
1543
1525
|
|
@@ -1554,20 +1536,20 @@ module UDDF
|
|
1554
1536
|
|
1555
1537
|
tag "setdcdata"
|
1556
1538
|
|
1557
|
-
has_one :set_dc_alarm_time, DateTime
|
1558
|
-
has_one :set_dc_altitude, Float
|
1559
|
-
has_one :set_dc_buddy_data, SetDCBuddyData
|
1560
|
-
has_one :set_dc_date_time, DateTime
|
1561
|
-
has_one :set_dc_deco_model, SetDCDecoModel
|
1562
|
-
has_one :set_dc_dive_depth_alarm, SetDCDiveDepthAlarm
|
1563
|
-
has_one :set_dc_dive_po2_alarm, SetDCDivePo2Alarm
|
1539
|
+
has_one :set_dc_alarm_time, DateTime, tag: "setdcalarmtime"
|
1540
|
+
has_one :set_dc_altitude, Float, tag: "setdcaltitude"
|
1541
|
+
has_one :set_dc_buddy_data, SetDCBuddyData, tag: "setdcbuddydata"
|
1542
|
+
has_one :set_dc_date_time, DateTime, tag: "setdcdatetime"
|
1543
|
+
has_one :set_dc_deco_model, SetDCDecoModel, tag: "setdcdecomodel"
|
1544
|
+
has_one :set_dc_dive_depth_alarm, SetDCDiveDepthAlarm, tag: "setdcdivedethalarm"
|
1545
|
+
has_one :set_dc_dive_po2_alarm, SetDCDivePo2Alarm, tag: "setdcdivepo2alarm"
|
1564
1546
|
has_many :set_dc_dive_site_data, SetDCDiveSiteData, tag: "setdcdivesitedata"
|
1565
|
-
has_one :set_dc_dive_time_alarm, SetDCDiveTimeAlarm
|
1566
|
-
has_one :set_dc_end_ndt_alarm, SetDCEndNDTAlarm
|
1567
|
-
has_one :set_dc_gas_definitions_data, String
|
1568
|
-
has_one :set_dc_owner_data, String
|
1569
|
-
has_one :set_dc_password, String
|
1570
|
-
has_one :set_dc_generator_data, String
|
1547
|
+
has_one :set_dc_dive_time_alarm, SetDCDiveTimeAlarm, tag: "setdcdivetimealarm"
|
1548
|
+
has_one :set_dc_end_ndt_alarm, SetDCEndNDTAlarm, tag: "setdcendndtalarm"
|
1549
|
+
has_one :set_dc_gas_definitions_data, String, tag: "setdcgasdefinitionsdata"
|
1550
|
+
has_one :set_dc_owner_data, String, tag: "setdcownerdata"
|
1551
|
+
has_one :set_dc_password, String, tag: "setdcpassword"
|
1552
|
+
has_one :set_dc_generator_data, String, tag: "setdcgeneratordata"
|
1571
1553
|
end
|
1572
1554
|
|
1573
1555
|
class GetDCData
|
@@ -1575,14 +1557,14 @@ module UDDF
|
|
1575
1557
|
|
1576
1558
|
tag "getdcdata"
|
1577
1559
|
|
1578
|
-
has_one :get_dc_all_data, String
|
1579
|
-
has_one :get_dc_generator_data, String
|
1580
|
-
has_one :get_dc_owner_data, String
|
1581
|
-
has_one :get_dc_buddy_data, String
|
1582
|
-
has_one :get_dc_gas_definitions_data, String
|
1583
|
-
has_one :get_dc_dive_site_data, String
|
1584
|
-
has_one :get_dc_dive_trip_data, String
|
1585
|
-
has_one :get_dc_profile_data, String
|
1560
|
+
has_one :get_dc_all_data, String, tag: "getdcalldata"
|
1561
|
+
has_one :get_dc_generator_data, String, tag: "getdcgeneratordata"
|
1562
|
+
has_one :get_dc_owner_data, String, tag: "getdcownerdata"
|
1563
|
+
has_one :get_dc_buddy_data, String, tag: "getdcbuddydata"
|
1564
|
+
has_one :get_dc_gas_definitions_data, String, tag: "getdcgasdefinitionsdata"
|
1565
|
+
has_one :get_dc_dive_site_data, String, tag: "getdcdivesitedata"
|
1566
|
+
has_one :get_dc_dive_trip_data, String, tag: "getdcdivetripdata"
|
1567
|
+
has_one :get_dc_profile_data, String, tag: "getdcprofiledata"
|
1586
1568
|
end
|
1587
1569
|
|
1588
1570
|
class DiveComputerDump
|
@@ -1591,7 +1573,7 @@ module UDDF
|
|
1591
1573
|
tag "divecomputerdump"
|
1592
1574
|
|
1593
1575
|
has_one :datetime, DateTime
|
1594
|
-
has_one :dc_dump, String
|
1576
|
+
has_one :dc_dump, String, tag: "dcdump"
|
1595
1577
|
has_one :link, Link
|
1596
1578
|
end
|
1597
1579
|
|
@@ -1601,8 +1583,8 @@ module UDDF
|
|
1601
1583
|
tag "divecomputercontrol"
|
1602
1584
|
|
1603
1585
|
has_many :dive_computer_dumps, DiveComputerDump, tag: "divecomputerdump"
|
1604
|
-
has_one :get_dc_data, GetDCData
|
1605
|
-
has_one :set_dc_data, SetDCData
|
1586
|
+
has_one :get_dc_data, GetDCData, tag: "getdcdata"
|
1587
|
+
has_one :set_dc_data, SetDCData, tag: "setdcdata"
|
1606
1588
|
end
|
1607
1589
|
|
1608
1590
|
class Uddf
|
@@ -1612,17 +1594,17 @@ module UDDF
|
|
1612
1594
|
|
1613
1595
|
attribute :version, String
|
1614
1596
|
has_one :business, Business
|
1615
|
-
has_one :deco_model, DecoModel
|
1616
|
-
has_one :dive_computer_control, DiveComputerControl
|
1597
|
+
has_one :deco_model, DecoModel, tag: "decomodel"
|
1598
|
+
has_one :dive_computer_control, DiveComputerControl, tag: "divecomputercontrol"
|
1617
1599
|
has_one :diver, Diver
|
1618
|
-
has_one :dive_site, DiveSite
|
1619
|
-
has_one :dive_trip, DiveTrip
|
1620
|
-
has_one :gas_definitions, GasDefinitions
|
1600
|
+
has_one :dive_site, DiveSite, tag: "divesite"
|
1601
|
+
has_one :dive_trip, DiveTrip, tag: "divetrip"
|
1602
|
+
has_one :gas_definitions, GasDefinitions, tag: "gasdefinitions"
|
1621
1603
|
has_one :generator, Generator
|
1622
1604
|
has_one :maker, Maker
|
1623
|
-
has_one :media_data, MediaData
|
1624
|
-
has_one :profile_data, ProfileData
|
1625
|
-
has_one :table_generation, TableGeneration
|
1605
|
+
has_one :media_data, MediaData, tag: "mediadata"
|
1606
|
+
has_one :profile_data, ProfileData, tag: "profiledata"
|
1607
|
+
has_one :table_generation, TableGeneration, tag: "tablegeneration"
|
1626
1608
|
end
|
1627
1609
|
end
|
1628
1610
|
end
|