uddf 0.3.0 → 0.4.1
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 +1 -4
- data/.rubocop_todo.yml +2 -7
- data/Gemfile.lock +1 -1
- data/README.md +36 -6
- data/lib/uddf/base/models/deco.rb +102 -0
- data/lib/uddf/base/models/dive_computer.rb +193 -0
- data/lib/uddf/base/models/generic.rb +838 -0
- data/lib/uddf/base/models/media.rb +66 -0
- data/lib/uddf/base/models.rb +6 -69
- data/lib/uddf/v300/models.rb +512 -0
- data/lib/uddf/v301/models.rb +513 -0
- data/lib/uddf/v310/models.rb +560 -0
- data/lib/uddf/v320/models.rb +581 -0
- data/lib/uddf/v321/models.rb +10 -0
- data/lib/uddf/v322/models.rb +585 -0
- data/lib/uddf/v323/models.rb +106 -1131
- data/lib/uddf/v330/models.rb +104 -1116
- data/lib/uddf/v331/models.rb +106 -1118
- data/lib/uddf/version.rb +1 -1
- data/lib/uddf.rb +7 -12
- metadata +11 -1
data/lib/uddf/v331/models.rb
CHANGED
@@ -61,183 +61,6 @@ module UDDF
|
|
61
61
|
content :value, Float
|
62
62
|
end
|
63
63
|
|
64
|
-
class Manufacturer
|
65
|
-
include HappyMapper
|
66
|
-
|
67
|
-
tag "manufacturer"
|
68
|
-
|
69
|
-
attribute :id, String
|
70
|
-
has_one :address, Base::Models::Address
|
71
|
-
has_many :alias_names, String, tag: "aliasname"
|
72
|
-
has_one :contact, Base::Models::Contact
|
73
|
-
has_one :name, String
|
74
|
-
end
|
75
|
-
|
76
|
-
class Link
|
77
|
-
include HappyMapper
|
78
|
-
|
79
|
-
tag "link"
|
80
|
-
|
81
|
-
attribute :ref, String
|
82
|
-
end
|
83
|
-
|
84
|
-
class Generator
|
85
|
-
include HappyMapper
|
86
|
-
|
87
|
-
tag "generator"
|
88
|
-
|
89
|
-
has_many :alias_names, String, tag: "aliasname"
|
90
|
-
has_one :datetime, DateTime
|
91
|
-
has_many :links, Link, tag: "link"
|
92
|
-
has_one :name, String
|
93
|
-
has_one :type, String
|
94
|
-
has_one :version, String
|
95
|
-
end
|
96
|
-
|
97
|
-
class Notes
|
98
|
-
include HappyMapper
|
99
|
-
|
100
|
-
tag "notes"
|
101
|
-
|
102
|
-
has_many :paras, String, tag: "para"
|
103
|
-
has_many :links, Link, tag: "link"
|
104
|
-
end
|
105
|
-
|
106
|
-
class Price
|
107
|
-
include HappyMapper
|
108
|
-
|
109
|
-
tag "price"
|
110
|
-
|
111
|
-
attribute :currency, String
|
112
|
-
content :value, Float
|
113
|
-
end
|
114
|
-
|
115
|
-
class Tissue
|
116
|
-
include HappyMapper
|
117
|
-
|
118
|
-
tag "tissue"
|
119
|
-
|
120
|
-
attribute :gas, String
|
121
|
-
attribute :half_life, Float
|
122
|
-
attribute :number, Integer
|
123
|
-
attribute :a, Float
|
124
|
-
attribute :b, Float
|
125
|
-
end
|
126
|
-
|
127
|
-
class VPM
|
128
|
-
include HappyMapper
|
129
|
-
|
130
|
-
tag "vpm"
|
131
|
-
|
132
|
-
attribute :id, String
|
133
|
-
has_one :conservatism, Float
|
134
|
-
has_one :gamma, Float
|
135
|
-
has_one :gc, Float
|
136
|
-
has_one :lambda, Float
|
137
|
-
has_one :r0, Float
|
138
|
-
has_many :tissues, Tissue, tag: "tissue"
|
139
|
-
end
|
140
|
-
|
141
|
-
class RGBM
|
142
|
-
include HappyMapper
|
143
|
-
|
144
|
-
tag "rgbm"
|
145
|
-
|
146
|
-
attribute :id, String
|
147
|
-
has_many :tissues, Tissue, tag: "tissue"
|
148
|
-
end
|
149
|
-
|
150
|
-
class Buehlmann
|
151
|
-
include HappyMapper
|
152
|
-
|
153
|
-
tag "buehlmann"
|
154
|
-
|
155
|
-
attribute :id, String
|
156
|
-
has_one :gradient_factor_high, Float, tag: "gradientfactorhigh"
|
157
|
-
has_one :gradient_factor_low, Float, tag: "gradientfactorlow"
|
158
|
-
has_many :tissues, Tissue, tag: "tissue"
|
159
|
-
end
|
160
|
-
|
161
|
-
class DecoModel
|
162
|
-
include HappyMapper
|
163
|
-
|
164
|
-
tag "decomodel"
|
165
|
-
|
166
|
-
has_many :buehlmanns, Buehlmann, tag: "buehlmann"
|
167
|
-
has_many :rgbms, RGBM, tag: "rbgm"
|
168
|
-
has_many :vpms, VPM, tag: "vpm"
|
169
|
-
end
|
170
|
-
|
171
|
-
class Mix
|
172
|
-
include HappyMapper
|
173
|
-
|
174
|
-
tag "mix"
|
175
|
-
|
176
|
-
attribute :id, String
|
177
|
-
has_many :alias_names, String, tag: "aliasname"
|
178
|
-
has_one :ar, Float
|
179
|
-
has_one :equivalent_air_depth, Float, tag: "equivalentairdepth"
|
180
|
-
has_one :h2, Float
|
181
|
-
has_one :he, Float
|
182
|
-
has_one :maximum_operation_depth, Float, tag: "maximumoperationdepth"
|
183
|
-
has_one :maximum_po2, Float, tag: "maximumpo2"
|
184
|
-
has_one :n2, Float
|
185
|
-
has_one :name, String
|
186
|
-
has_one :o2, Float
|
187
|
-
has_one :price_per_litre, Price, tag: "priceperlitre"
|
188
|
-
end
|
189
|
-
|
190
|
-
class GasDefinitions
|
191
|
-
include HappyMapper
|
192
|
-
|
193
|
-
tag "gasdefinitions"
|
194
|
-
|
195
|
-
has_many :mixes, Mix, tag: "mix"
|
196
|
-
end
|
197
|
-
|
198
|
-
class WayAltitude
|
199
|
-
include HappyMapper
|
200
|
-
|
201
|
-
tag "wayaltitude"
|
202
|
-
|
203
|
-
attribute :way_time, Float
|
204
|
-
content :value, Float
|
205
|
-
end
|
206
|
-
|
207
|
-
class ExposureToAltitude
|
208
|
-
include HappyMapper
|
209
|
-
|
210
|
-
tag "exposuretoaltitude"
|
211
|
-
|
212
|
-
has_one :altitude_of_exposure, Float, tag: "altitudeofexposure"
|
213
|
-
has_one :date_of_flight, Base::Models::DateTimeField, tag: "dateofflight"
|
214
|
-
has_one :surface_interval_before_altitude_exposure, Float, tag: "surfaceintervalbeforealtitudeexposure"
|
215
|
-
has_one :total_length_of_exposure, Float, tag: "totallengthofexposure"
|
216
|
-
has_one :transportation, String
|
217
|
-
end
|
218
|
-
|
219
|
-
class SurfaceIntervalBeforeDive
|
220
|
-
include HappyMapper
|
221
|
-
|
222
|
-
tag "surfaceintervalbeforedive"
|
223
|
-
|
224
|
-
has_one :exposure_to_altitude, ExposureToAltitude, tag: "exposuretoaltitude"
|
225
|
-
has_one :infinity, String
|
226
|
-
has_one :passed_time, Float, tag: "passedtime"
|
227
|
-
has_many :way_altitudes, WayAltitude, tag: "wayaltitude"
|
228
|
-
end
|
229
|
-
|
230
|
-
class SurfaceIntervalAfterDive
|
231
|
-
include HappyMapper
|
232
|
-
|
233
|
-
tag "surfaceintervalafterdive"
|
234
|
-
|
235
|
-
has_one :exposure_to_altitude, ExposureToAltitude, tag: "exposuretoaltitude"
|
236
|
-
has_one :infinity, String
|
237
|
-
has_one :passed_time, Float, tag: "passedtime"
|
238
|
-
has_many :way_altitudes, WayAltitude, tag: "wayaltitude"
|
239
|
-
end
|
240
|
-
|
241
64
|
class TankPressure
|
242
65
|
include HappyMapper
|
243
66
|
|
@@ -387,26 +210,10 @@ module UDDF
|
|
387
210
|
has_many :infos, Info, tag: "info"
|
388
211
|
has_many :ppco2s, PPCo2, tag: "ppco2"
|
389
212
|
has_many :scrubbers, Scrubber, tag: "scrubber"
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
tag "medicine"
|
396
|
-
|
397
|
-
has_many :alias_names, String, tag: "aliasname"
|
398
|
-
has_one :name, String
|
399
|
-
has_one :notes, Notes
|
400
|
-
has_one :periodically_taken, String, tag: "periodicallytaken"
|
401
|
-
has_one :timespan_before_dive, Float, tag: "timespanbeforedive"
|
402
|
-
end
|
403
|
-
|
404
|
-
class MedicationBeforeDive
|
405
|
-
include HappyMapper
|
406
|
-
|
407
|
-
tag "medicationbeforedive"
|
408
|
-
|
409
|
-
has_many :medicines, Medicine, tag: "medicine"
|
213
|
+
# Added in v3.2.2
|
214
|
+
has_one :body_temperature, Float, tag: "bodytemperature"
|
215
|
+
has_one :pulse_rate, Float, tag: "pulserate"
|
216
|
+
has_many :set_markers, String, tag: "setmarker"
|
410
217
|
end
|
411
218
|
|
412
219
|
class PlannedProfile
|
@@ -419,33 +226,13 @@ module UDDF
|
|
419
226
|
has_many :waypoints, Waypoint, tag: "waypoint"
|
420
227
|
end
|
421
228
|
|
422
|
-
class Drink
|
423
|
-
include HappyMapper
|
424
|
-
|
425
|
-
tag "drink"
|
426
|
-
|
427
|
-
has_many :alias_names, String, tag: "aliasname"
|
428
|
-
has_one :name, String
|
429
|
-
has_one :notes, Notes
|
430
|
-
has_one :periodically_taken, String, tag: "periodicallytaken"
|
431
|
-
has_one :timespan_before_dive, Float, tag: "timespanbeforedive"
|
432
|
-
end
|
433
|
-
|
434
|
-
class AlcoholBeforeDive
|
435
|
-
include HappyMapper
|
436
|
-
|
437
|
-
tag "alcoholbeforedive"
|
438
|
-
|
439
|
-
has_many :drinks, Drink, tag: "drink"
|
440
|
-
end
|
441
|
-
|
442
229
|
class InformationBeforeDive
|
443
230
|
include HappyMapper
|
444
231
|
|
445
232
|
tag "informationbeforedive"
|
446
233
|
|
447
234
|
has_one :air_temperature, Float, tag: "airtemperature"
|
448
|
-
has_one :alcohol_before_dive, AlcoholBeforeDive, tag: "alcoholbeforedive"
|
235
|
+
has_one :alcohol_before_dive, Base::Models::AlcoholBeforeDive, tag: "alcoholbeforedive"
|
449
236
|
has_one :altitude, Float
|
450
237
|
has_one :apparatus, String
|
451
238
|
has_one :datetime, DateTime
|
@@ -453,152 +240,29 @@ module UDDF
|
|
453
240
|
has_one :dive_number, Integer, tag: "divenumber"
|
454
241
|
has_one :dive_number_of_day, Integer, tag: "divenumberofday"
|
455
242
|
has_one :internal_dive_number, Integer, tag: "internaldivenumber"
|
456
|
-
has_many :links, Link, tag: "link"
|
457
|
-
has_one :medication_before_dive, MedicationBeforeDive, tag: "medicationbeforedive"
|
243
|
+
has_many :links, Base::Models::Link, tag: "link"
|
244
|
+
has_one :medication_before_dive, Base::Models::MedicationBeforeDive, tag: "medicationbeforedive"
|
458
245
|
has_one :no_suit, String, tag: "nosuit"
|
459
246
|
has_one :planned_profile, PlannedProfile, tag: "plannedprofile"
|
460
247
|
has_one :platform, String
|
461
|
-
has_one :price, Price
|
248
|
+
has_one :price, Base::Models::Price
|
462
249
|
has_one :purpose, String
|
463
250
|
has_many :rebreather_self_tests, RebreatherSelfTest, tag: "rebreatherselftest"
|
464
251
|
has_one :state_of_rest_before_dive, String, tag: "stateofrestbeforedive"
|
465
252
|
has_many :self_tests, SelfTest, tag: "selftest"
|
466
|
-
has_one :surface_interval_before_dive, SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
|
253
|
+
has_one :surface_interval_before_dive, Base::Models::SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
|
467
254
|
has_one :surface_pressure, Float, tag: "surfacepressure"
|
468
255
|
has_one :trip_membership, String, tag: "tripmembership"
|
469
256
|
has_many :timers, Timer, tag: "timer"
|
470
257
|
end
|
471
258
|
|
472
|
-
class Rating
|
473
|
-
include HappyMapper
|
474
|
-
|
475
|
-
tag "rating"
|
476
|
-
|
477
|
-
has_one :datetime, DateTime
|
478
|
-
has_one :rating_value, Integer, tag: "ratingvalue"
|
479
|
-
end
|
480
|
-
|
481
|
-
class GlobalAlarmsGiven
|
482
|
-
include HappyMapper
|
483
|
-
|
484
|
-
tag "globalalarmsgiven"
|
485
|
-
|
486
|
-
has_many :global_alarms, String, tag: "globalalarm"
|
487
|
-
end
|
488
|
-
|
489
259
|
class EquipmentUsed
|
490
260
|
include HappyMapper
|
491
261
|
|
492
262
|
tag "equipmentused"
|
493
263
|
|
494
264
|
has_one :lead_quantity, Float, tag: "leadquantity"
|
495
|
-
has_many :links, Link, tag: "link"
|
496
|
-
end
|
497
|
-
|
498
|
-
class AnySymptoms
|
499
|
-
include HappyMapper
|
500
|
-
|
501
|
-
tag "anysymptoms"
|
502
|
-
|
503
|
-
has_one :notes, Notes
|
504
|
-
end
|
505
|
-
|
506
|
-
class Abundance
|
507
|
-
include HappyMapper
|
508
|
-
|
509
|
-
tag "abundance"
|
510
|
-
|
511
|
-
attribute :quality, String
|
512
|
-
attribute :occurrence, String
|
513
|
-
content :value, Integer
|
514
|
-
end
|
515
|
-
|
516
|
-
class Species
|
517
|
-
include HappyMapper
|
518
|
-
|
519
|
-
tag "species"
|
520
|
-
|
521
|
-
attribute :id, String
|
522
|
-
has_one :abundance, Abundance
|
523
|
-
has_one :age, Integer
|
524
|
-
has_one :dominance, String
|
525
|
-
has_one :life_stage, String, tag: "lifestage"
|
526
|
-
has_one :notes, Notes
|
527
|
-
has_one :scientific_name, String, tag: "scientificname"
|
528
|
-
has_one :sex, String
|
529
|
-
has_one :size, Float
|
530
|
-
has_one :trivial_name, String, tag: "trivialname"
|
531
|
-
end
|
532
|
-
|
533
|
-
class WithSpecies
|
534
|
-
include HappyMapper
|
535
|
-
|
536
|
-
has_many :species, Species, tag: "species"
|
537
|
-
end
|
538
|
-
|
539
|
-
class Invertebrata
|
540
|
-
include HappyMapper
|
541
|
-
|
542
|
-
tag "invertebrata"
|
543
|
-
|
544
|
-
has_one :ascidiacea, WithSpecies
|
545
|
-
has_one :bryozoan, WithSpecies
|
546
|
-
has_one :cnidaria, WithSpecies
|
547
|
-
has_one :coelenterata, WithSpecies
|
548
|
-
has_one :crustacea, WithSpecies
|
549
|
-
has_one :ctenophora, WithSpecies
|
550
|
-
has_one :echinodermata, WithSpecies
|
551
|
-
has_one :invertebrata_various, WithSpecies, tag: "invertebratavarious"
|
552
|
-
has_one :mollusca, WithSpecies
|
553
|
-
has_one :phoronidea, WithSpecies
|
554
|
-
has_one :plathelminthes, WithSpecies
|
555
|
-
has_one :porifera, WithSpecies
|
556
|
-
end
|
557
|
-
|
558
|
-
class Vertebrata
|
559
|
-
include HappyMapper
|
560
|
-
|
561
|
-
tag "vertebrata"
|
562
|
-
|
563
|
-
has_one :amphibia, WithSpecies
|
564
|
-
has_one :chondrichthyes, WithSpecies
|
565
|
-
has_one :mammalia, WithSpecies
|
566
|
-
has_one :osteichthyes, WithSpecies
|
567
|
-
has_one :reptilia, WithSpecies
|
568
|
-
has_one :vertebrata_various, WithSpecies, tag: "vertebratavarious"
|
569
|
-
end
|
570
|
-
|
571
|
-
class Fauna
|
572
|
-
include HappyMapper
|
573
|
-
|
574
|
-
tag "fauna"
|
575
|
-
|
576
|
-
has_one :invertebrata, Invertebrata
|
577
|
-
has_one :notes, Notes
|
578
|
-
has_one :vertebrata, Vertebrata
|
579
|
-
end
|
580
|
-
|
581
|
-
class Flora
|
582
|
-
include HappyMapper
|
583
|
-
|
584
|
-
tag "flora"
|
585
|
-
|
586
|
-
has_one :chlorophyceae, WithSpecies
|
587
|
-
has_one :flora_various, WithSpecies, tag: "floravarious"
|
588
|
-
has_one :notes, Notes
|
589
|
-
has_one :phaeophyceae, WithSpecies
|
590
|
-
has_one :rhodophyceae, WithSpecies
|
591
|
-
has_one :spermatophyta, WithSpecies
|
592
|
-
end
|
593
|
-
|
594
|
-
class Observations
|
595
|
-
include HappyMapper
|
596
|
-
|
597
|
-
tag "observations"
|
598
|
-
|
599
|
-
has_one :fauna, Fauna
|
600
|
-
has_one :flora, Flora
|
601
|
-
has_one :notes, Notes
|
265
|
+
has_many :links, Base::Models::Link, tag: "link"
|
602
266
|
end
|
603
267
|
|
604
268
|
class InformationAfterDive
|
@@ -606,7 +270,7 @@ module UDDF
|
|
606
270
|
|
607
271
|
tag "informationafterdive"
|
608
272
|
|
609
|
-
has_one :any_symptoms, AnySymptoms, tag: "anysymptoms"
|
273
|
+
has_one :any_symptoms, Base::Models::AnySymptoms, tag: "anysymptoms"
|
610
274
|
has_one :average_depth, Float, tag: "averagedepth"
|
611
275
|
has_one :current, String
|
612
276
|
has_one :desaturation_time, Float, tag: "desaturationtime"
|
@@ -615,18 +279,18 @@ module UDDF
|
|
615
279
|
has_one :dive_table, String, tag: "divetable"
|
616
280
|
has_one :equipment_malfunction, String, tag: "equipmentmalfunction"
|
617
281
|
has_one :equipment_used, EquipmentUsed, tag: "equipmentused"
|
618
|
-
has_one :global_alarms_given, GlobalAlarmsGiven, tag: "globalalarmsgiven"
|
282
|
+
has_one :global_alarms_given, Base::Models::GlobalAlarmsGiven, tag: "globalalarmsgiven"
|
619
283
|
has_one :greatest_depth, Float, tag: "greatestdepth"
|
620
284
|
has_one :highest_po2, Float, tag: "highestpo2"
|
621
285
|
has_one :lowest_temperature, Float, tag: "lowesttemperature"
|
622
286
|
has_one :no_flight_time, Float, tag: "noflighttime"
|
623
|
-
has_one :notes, Notes
|
624
|
-
has_one :observations, Observations
|
287
|
+
has_one :notes, Base::Models::Notes
|
288
|
+
has_one :observations, Base::Models::Observations
|
625
289
|
has_one :pressure_drop, Float, tag: "pressuredrop"
|
626
290
|
has_many :problems, String, tag: "problems"
|
627
291
|
has_one :program, String
|
628
|
-
has_many :ratings, Rating, tag: "rating"
|
629
|
-
has_one :surface_interval_after_dive, SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
|
292
|
+
has_many :ratings, Base::Models::Rating, tag: "rating"
|
293
|
+
has_one :surface_interval_after_dive, Base::Models::SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
|
630
294
|
has_one :thermal_comfort, String, tag: "thermalcomfort"
|
631
295
|
has_many :timers, Timer, tag: "timer"
|
632
296
|
has_one :visibility, Float
|
@@ -641,29 +305,6 @@ module UDDF
|
|
641
305
|
has_many :waypoints, Waypoint, tag: "waypoint"
|
642
306
|
end
|
643
307
|
|
644
|
-
class Hargikas
|
645
|
-
include HappyMapper
|
646
|
-
|
647
|
-
tag "hargikas"
|
648
|
-
|
649
|
-
has_one :ambient, Float
|
650
|
-
has_many :tissues, Tissue, tag: "tissue"
|
651
|
-
has_one :arterial_micro_bubble_level, Integer, tag: "arterialmicrobubbleLevel"
|
652
|
-
has_one :intrapulmonary_right_left_shunt, Float, tag: "intrapulmonaryrightleftshunt"
|
653
|
-
has_one :estimated_skin_cool_level, Integer, tag: "estimatedskincoolLevel"
|
654
|
-
end
|
655
|
-
|
656
|
-
class ApplicationData
|
657
|
-
include HappyMapper
|
658
|
-
|
659
|
-
tag "applicationdata"
|
660
|
-
|
661
|
-
has_one :deco_trainer, String, tag: "decotrainer"
|
662
|
-
has_one :hargikas, Hargikas
|
663
|
-
has_one :apdiving, String
|
664
|
-
has_one :ratio, String
|
665
|
-
end
|
666
|
-
|
667
308
|
class TankUsed
|
668
309
|
include HappyMapper
|
669
310
|
|
@@ -674,7 +315,7 @@ module UDDF
|
|
674
315
|
has_one :analysed_he, Float, tag: "analysedhe"
|
675
316
|
has_one :analysed_o2, Float, tag: "analysedo2"
|
676
317
|
has_one :breathing_consumption_volume, Float, tag: "breathingconsumptionvolume"
|
677
|
-
has_many :links, Link, tag: "link"
|
318
|
+
has_many :links, Base::Models::Link, tag: "link"
|
678
319
|
has_one :tank_pressure_begin, Float, tag: "tankpressurebegin"
|
679
320
|
has_one :tank_pressure_end, Float, tag: "tankpressureend"
|
680
321
|
has_one :tank_volume, Float, tag: "tankvolume"
|
@@ -696,7 +337,7 @@ module UDDF
|
|
696
337
|
attribute :id, String
|
697
338
|
has_one :information_after_dive, InformationAfterDive, tag: "informationafterdive"
|
698
339
|
has_one :information_before_dive, InformationBeforeDive, tag: "informationbeforedive"
|
699
|
-
has_one :application_data,
|
340
|
+
has_one :application_data, Base::Models::ApplicationDataV330, tag: "applicationdata"
|
700
341
|
has_one :samples, Samples
|
701
342
|
has_one :tank_data, TankData, tag: "tankdata"
|
702
343
|
end
|
@@ -748,7 +389,7 @@ module UDDF
|
|
748
389
|
|
749
390
|
tag "inputprofile"
|
750
391
|
|
751
|
-
has_many :links, Link, tag: "link"
|
392
|
+
has_many :links, Base::Models::Link, tag: "link"
|
752
393
|
has_many :waypoints, Waypoint, tag: "waypoint"
|
753
394
|
end
|
754
395
|
|
@@ -769,17 +410,17 @@ module UDDF
|
|
769
410
|
|
770
411
|
tag "profile"
|
771
412
|
|
772
|
-
has_one :application_data,
|
773
|
-
has_one :deco_model,
|
413
|
+
has_one :application_data, Base::Models::ApplicationDataV330, tag: "applicationdata"
|
414
|
+
has_one :deco_model, Base::Models::DecoModelV320, tag: "decomodel"
|
774
415
|
has_one :deep_stops, DeepStops, tag: "deepstops"
|
775
416
|
has_one :density, Float
|
776
417
|
has_one :input_profile, InputProfile, tag: "inputprofile"
|
777
|
-
has_many :links, Link, tag: "link"
|
418
|
+
has_many :links, Base::Models::Link, tag: "link"
|
778
419
|
has_one :maximum_ascending_rate, Float, tag: "maximumascendingrate"
|
779
420
|
has_one :mix_change, MixChange, tag: "mixchange"
|
780
421
|
has_one :output, Output
|
781
|
-
has_one :surface_interval_after_dive, SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
|
782
|
-
has_one :surface_interval_before_dive, SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
|
422
|
+
has_one :surface_interval_after_dive, Base::Models::SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
|
423
|
+
has_one :surface_interval_before_dive, Base::Models::SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
|
783
424
|
has_one :title, String
|
784
425
|
end
|
785
426
|
|
@@ -846,9 +487,9 @@ module UDDF
|
|
846
487
|
tag "bottomtimetable"
|
847
488
|
|
848
489
|
attribute :id, String
|
849
|
-
has_one :application_data,
|
490
|
+
has_one :application_data, Base::Models::ApplicationDataV330, tag: "applicationdata"
|
850
491
|
has_one :bottom_time_table_scope, BottomTimeTableScope, tag: "bottomtimetablescope"
|
851
|
-
has_many :links, Link, tag: "link"
|
492
|
+
has_many :links, Base::Models::Link, tag: "link"
|
852
493
|
has_one :output, Output
|
853
494
|
has_one :title, String
|
854
495
|
end
|
@@ -871,617 +512,124 @@ module UDDF
|
|
871
512
|
has_one :calculate_table, CalculateTable, tag: "calculatetable"
|
872
513
|
end
|
873
514
|
|
874
|
-
class
|
515
|
+
class Maker
|
875
516
|
include HappyMapper
|
876
517
|
|
877
|
-
tag "
|
518
|
+
tag "maker"
|
878
519
|
|
879
|
-
|
880
|
-
has_one :datetime, DateTime
|
881
|
-
has_one :exposure_compensation, Float, tag: "exposurecompensation"
|
882
|
-
has_one :film_speed, Integer, tag: "filmspeed"
|
883
|
-
has_one :focal_length, Float, tag: "focallength"
|
884
|
-
has_one :focusing_distance, Float, tag: "focusingdistance"
|
885
|
-
has_one :metering_method, String, tag: "meteringmethod"
|
886
|
-
has_one :shutter_speed, Float, tag: "shutterspeed"
|
520
|
+
has_many :manufacturers, Base::Models::Manufacturer, tag: "manufacturer"
|
887
521
|
end
|
888
522
|
|
889
|
-
class
|
523
|
+
class Business
|
890
524
|
include HappyMapper
|
891
525
|
|
892
|
-
tag "
|
526
|
+
tag "business"
|
893
527
|
|
894
|
-
|
895
|
-
attribute :height, Integer
|
896
|
-
attribute :width, Integer
|
897
|
-
attribute :format, String
|
898
|
-
has_one :image_data, ImageData, tag: "imagedata"
|
899
|
-
has_one :object_name, String, tag: "objectname"
|
900
|
-
has_one :title, String
|
528
|
+
has_one :shop, Base::Models::Shop
|
901
529
|
end
|
902
530
|
|
903
|
-
class
|
531
|
+
class TemperatureSensor
|
904
532
|
include HappyMapper
|
905
533
|
|
906
|
-
tag "
|
534
|
+
tag "temperaturesensor"
|
907
535
|
|
908
536
|
attribute :id, String
|
909
|
-
|
910
|
-
|
537
|
+
|
538
|
+
has_many :alias_names, String, tag: "aliasname"
|
539
|
+
has_one :manufacturer, Base::Models::Manufacturer
|
540
|
+
has_one :model, String
|
541
|
+
has_one :name, String
|
542
|
+
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
543
|
+
has_one :notes, Base::Models::Notes
|
544
|
+
has_one :purchase, Base::Models::Purchase
|
545
|
+
has_one :serial_number, String, tag: "serialnumber"
|
546
|
+
has_one :service_interval, Integer, tag: "serviceinterval"
|
911
547
|
end
|
912
548
|
|
913
|
-
class
|
549
|
+
class TimerDevice
|
914
550
|
include HappyMapper
|
915
551
|
|
916
|
-
tag "
|
552
|
+
tag "timerdevice"
|
917
553
|
|
918
554
|
attribute :id, String
|
919
|
-
has_one :object_name, String, tag: "objectname"
|
920
|
-
has_one :title, String
|
921
555
|
end
|
922
556
|
|
923
|
-
class
|
557
|
+
class EquipmentPart
|
924
558
|
include HappyMapper
|
925
559
|
|
926
|
-
tag "
|
560
|
+
tag "equipmentpart"
|
927
561
|
|
928
|
-
|
929
|
-
has_many :
|
930
|
-
has_many :
|
562
|
+
attribute :id, String
|
563
|
+
has_many :alias_names, String, tag: "aliasname"
|
564
|
+
has_many :links, Base::Models::Link, tag: "link"
|
565
|
+
has_one :manufacturer, Base::Models::Manufacturer
|
566
|
+
has_one :model, String
|
567
|
+
has_one :name, String
|
568
|
+
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
569
|
+
has_one :notes, Base::Models::Notes
|
570
|
+
has_one :purchase, Base::Models::Purchase
|
571
|
+
has_one :serial_number, String, tag: "serialnumber"
|
572
|
+
has_one :service_interval, Integer, tag: "serviceinterval"
|
931
573
|
end
|
932
574
|
|
933
|
-
class
|
575
|
+
class Lead < EquipmentPart
|
934
576
|
include HappyMapper
|
935
577
|
|
936
|
-
tag "
|
578
|
+
tag "lead"
|
937
579
|
|
938
|
-
|
580
|
+
has_one :lead_quantity, Integer, tag: "leadquantity"
|
939
581
|
end
|
940
582
|
|
941
|
-
class
|
583
|
+
class Rebreather < EquipmentPart
|
942
584
|
include HappyMapper
|
943
585
|
|
944
|
-
tag "
|
586
|
+
tag "rebreather"
|
945
587
|
|
946
|
-
|
947
|
-
|
948
|
-
|
588
|
+
has_many :batteries, Battery, tag: "battery"
|
589
|
+
has_many :o2_sensors, EquipmentPart, tag: "o2sensor"
|
590
|
+
has_many :scrubber_monitors, ScrubberMonitor, tag: "scrubbermonitor"
|
591
|
+
has_many :temperature_sensors, TemperatureSensor, tag: "temperaturesensor"
|
592
|
+
has_many :timer_devices, TimerDevice, tag: "timerdevice"
|
949
593
|
end
|
950
594
|
|
951
|
-
class
|
595
|
+
class Suit < EquipmentPart
|
952
596
|
include HappyMapper
|
953
597
|
|
954
|
-
tag "
|
598
|
+
tag "suit"
|
955
599
|
|
956
|
-
|
600
|
+
has_one :suit_type, String, tag: "suittype"
|
957
601
|
end
|
958
602
|
|
959
|
-
class
|
603
|
+
class Tank < EquipmentPart
|
960
604
|
include HappyMapper
|
961
605
|
|
962
|
-
tag "
|
606
|
+
tag "tank"
|
963
607
|
|
964
|
-
has_one :
|
965
|
-
has_one :
|
966
|
-
|
967
|
-
has_one :
|
968
|
-
has_one :
|
608
|
+
has_one :tank_material, String, tag: "tankmaterial"
|
609
|
+
has_one :tank_volume, Float, tag: "tankvolume"
|
610
|
+
has_many :batteries, Battery, tag: "battery"
|
611
|
+
has_one :hydro_service_interval, Integer, tag: "hydroserviceinterval"
|
612
|
+
has_one :next_hydro_date, Base::Models::DateTimeField, tag: "nexthydrodate"
|
613
|
+
has_one :next_visual_date, Base::Models::DateTimeField, tag: "nextvisualdate"
|
614
|
+
has_one :rated_pressure, Float, tag: "ratedpressure"
|
615
|
+
has_one :visual_service_interval, Integer, tag: "visualserviceinterval"
|
969
616
|
end
|
970
617
|
|
971
|
-
class
|
618
|
+
class Camera
|
972
619
|
include HappyMapper
|
973
620
|
|
974
|
-
tag "
|
621
|
+
tag "camera"
|
975
622
|
|
976
|
-
has_one :
|
977
|
-
has_many :
|
978
|
-
has_one :
|
979
|
-
has_one :
|
980
|
-
has_one :name, String
|
981
|
-
has_one :notes, Notes
|
982
|
-
has_many :ratings, Rating, tag: "rating"
|
983
|
-
has_one :ship_dimension, ShipDimension, tag: "shipdimension"
|
984
|
-
has_one :ship_type, String, tag: "shiptype"
|
623
|
+
has_one :body, EquipmentPart
|
624
|
+
has_many :flashes, EquipmentPart, tag: "flash"
|
625
|
+
has_one :housing, EquipmentPart
|
626
|
+
has_one :lens, EquipmentPart
|
985
627
|
end
|
986
628
|
|
987
|
-
class
|
629
|
+
class DiveComputer < EquipmentPart
|
988
630
|
include HappyMapper
|
989
631
|
|
990
|
-
tag "
|
991
|
-
|
992
|
-
has_many :alias_names, String, tag: "aliasname"
|
993
|
-
has_one :address, Base::Models::Address
|
994
|
-
has_one :contact, Base::Models::Contact
|
995
|
-
has_one :name, String
|
996
|
-
has_one :notes, Notes
|
997
|
-
has_many :ratings, Rating, tag: "rating"
|
998
|
-
end
|
999
|
-
|
1000
|
-
class DateOfTrip
|
1001
|
-
include HappyMapper
|
1002
|
-
|
1003
|
-
tag "dateoftrip"
|
1004
|
-
|
1005
|
-
attribute :start_date, DateTime
|
1006
|
-
attribute :end_date, DateTime
|
1007
|
-
end
|
1008
|
-
|
1009
|
-
class Accommodation
|
1010
|
-
include HappyMapper
|
1011
|
-
|
1012
|
-
tag "accommodation"
|
1013
|
-
|
1014
|
-
has_one :address, Base::Models::Address
|
1015
|
-
has_many :alias_names, String, tag: "aliasname"
|
1016
|
-
has_one :category, String
|
1017
|
-
has_one :contact, Base::Models::Contact
|
1018
|
-
has_one :name, String
|
1019
|
-
has_one :notes, Notes
|
1020
|
-
has_many :ratings, Rating, tag: "rating"
|
1021
|
-
end
|
1022
|
-
|
1023
|
-
class Geography
|
1024
|
-
include HappyMapper
|
1025
|
-
|
1026
|
-
tag "geography"
|
1027
|
-
|
1028
|
-
has_one :address, Base::Models::Address
|
1029
|
-
has_one :altitude, Float
|
1030
|
-
has_one :latitude, Float
|
1031
|
-
has_one :location, String
|
1032
|
-
has_one :longitude, Float
|
1033
|
-
has_one :time_zone, Float, tag: "timezone"
|
1034
|
-
end
|
1035
|
-
|
1036
|
-
class TripPart
|
1037
|
-
include HappyMapper
|
1038
|
-
|
1039
|
-
tag "trippart"
|
1040
|
-
|
1041
|
-
attribute :type, String
|
1042
|
-
has_one :accommodation, Accommodation
|
1043
|
-
has_one :date_of_trip, DateOfTrip, tag: "dateoftrip"
|
1044
|
-
has_one :geography, Geography
|
1045
|
-
has_many :links, Link, tag: "link"
|
1046
|
-
has_one :name, String
|
1047
|
-
has_one :notes, Notes
|
1048
|
-
has_one :operator, Operator
|
1049
|
-
has_one :price_dive_package, PriceDivePackage, tag: "pricedivepackage"
|
1050
|
-
has_one :price_per_dive, Price, tag: "priceperdive"
|
1051
|
-
has_one :related_dives, RelatedDives, tag: "relateddives"
|
1052
|
-
has_one :vessel, Vessel
|
1053
|
-
end
|
1054
|
-
|
1055
|
-
class Trip
|
1056
|
-
include HappyMapper
|
1057
|
-
|
1058
|
-
tag "trip"
|
1059
|
-
|
1060
|
-
attribute :id, String
|
1061
|
-
has_many :alias_names, String, tag: "aliasname"
|
1062
|
-
has_one :name, String
|
1063
|
-
has_many :ratings, Rating, tag: "rating"
|
1064
|
-
has_many :trip_parts, TripPart, tag: "trippart"
|
1065
|
-
end
|
1066
|
-
|
1067
|
-
class DiveTrip
|
1068
|
-
include HappyMapper
|
1069
|
-
|
1070
|
-
tag "divetrip"
|
1071
|
-
|
1072
|
-
has_many :trips, Trip, tag: "trip"
|
1073
|
-
end
|
1074
|
-
|
1075
|
-
class Ecology
|
1076
|
-
include HappyMapper
|
1077
|
-
|
1078
|
-
tag "ecology"
|
1079
|
-
|
1080
|
-
has_one :fauna, Fauna
|
1081
|
-
has_one :flora, Flora
|
1082
|
-
end
|
1083
|
-
|
1084
|
-
class Built
|
1085
|
-
include HappyMapper
|
1086
|
-
|
1087
|
-
tag "built"
|
1088
|
-
|
1089
|
-
has_one :launching_date, Base::Models::DateTimeField, tag: "launchingdate"
|
1090
|
-
has_one :ship_yard, String, tag: "shipyard"
|
1091
|
-
end
|
1092
|
-
|
1093
|
-
class Wreck
|
1094
|
-
include HappyMapper
|
1095
|
-
|
1096
|
-
tag "wreck"
|
1097
|
-
|
1098
|
-
has_many :alias_names, String, tag: "aliasname"
|
1099
|
-
has_one :built, Built
|
1100
|
-
has_one :name, String
|
1101
|
-
has_one :nationality, String
|
1102
|
-
has_one :ship_dimension, ShipDimension, tag: "shipdimension"
|
1103
|
-
has_one :ship_type, String, tag: "shiptype"
|
1104
|
-
has_one :sunk, Base::Models::DateTimeField
|
1105
|
-
end
|
1106
|
-
|
1107
|
-
class Shore
|
1108
|
-
include HappyMapper
|
1109
|
-
|
1110
|
-
tag "shore"
|
1111
|
-
|
1112
|
-
attribute :id, String
|
1113
|
-
has_many :alias_names, String, tag: "aliasname"
|
1114
|
-
has_one :name, String
|
1115
|
-
has_one :notes, Notes
|
1116
|
-
end
|
1117
|
-
|
1118
|
-
class River
|
1119
|
-
include HappyMapper
|
1120
|
-
|
1121
|
-
tag "river"
|
1122
|
-
|
1123
|
-
attribute :id, String
|
1124
|
-
has_many :alias_names, String, tag: "aliasname"
|
1125
|
-
has_one :name, String
|
1126
|
-
has_one :notes, Notes
|
1127
|
-
end
|
1128
|
-
|
1129
|
-
class Lake
|
1130
|
-
include HappyMapper
|
1131
|
-
|
1132
|
-
tag "lake"
|
1133
|
-
|
1134
|
-
attribute :id, String
|
1135
|
-
has_many :alias_names, String, tag: "aliasname"
|
1136
|
-
has_one :name, String
|
1137
|
-
has_one :notes, Notes
|
1138
|
-
end
|
1139
|
-
|
1140
|
-
class Indoor
|
1141
|
-
include HappyMapper
|
1142
|
-
|
1143
|
-
tag "indoor"
|
1144
|
-
|
1145
|
-
has_one :address, Base::Models::Address
|
1146
|
-
has_many :alias_names, String, tag: "aliasname"
|
1147
|
-
has_one :contact, Base::Models::Contact
|
1148
|
-
has_one :name, String
|
1149
|
-
has_one :notes, Notes
|
1150
|
-
end
|
1151
|
-
|
1152
|
-
class Cave
|
1153
|
-
include HappyMapper
|
1154
|
-
|
1155
|
-
tag "cave"
|
1156
|
-
|
1157
|
-
attribute :id, String
|
1158
|
-
has_many :alias_names, String, tag: "aliasname"
|
1159
|
-
has_one :name, String
|
1160
|
-
has_one :notes, Notes
|
1161
|
-
end
|
1162
|
-
|
1163
|
-
class SiteData
|
1164
|
-
include HappyMapper
|
1165
|
-
|
1166
|
-
tag "sidedata"
|
1167
|
-
|
1168
|
-
has_one :area_length, Float, tag: "arealength"
|
1169
|
-
has_one :area_width, Float, tag: "areawidth"
|
1170
|
-
has_one :average_visibility, Float, tag: "averagevisibility"
|
1171
|
-
has_one :bottom, String
|
1172
|
-
has_one :cave, Cave
|
1173
|
-
has_one :density, Float
|
1174
|
-
has_one :difficulty, Integer
|
1175
|
-
has_one :global_light_intensity, String, tag: "globallightintensity"
|
1176
|
-
has_one :indoor, Indoor
|
1177
|
-
has_one :maximum_depth, Float, tag: "maximumdepth"
|
1178
|
-
has_one :maximum_visibility, Float, tag: "maximumvisibility"
|
1179
|
-
has_one :minimum_depth, Float, tag: "minimumdepth"
|
1180
|
-
has_one :minimum_visibility, Float, tag: "minimumvisibility"
|
1181
|
-
has_one :river, River
|
1182
|
-
has_one :shore, Shore
|
1183
|
-
has_one :terrain, String
|
1184
|
-
has_one :wreck, Wreck
|
1185
|
-
end
|
1186
|
-
|
1187
|
-
class Site
|
1188
|
-
include HappyMapper
|
1189
|
-
|
1190
|
-
tag "site"
|
1191
|
-
|
1192
|
-
attribute :id, String
|
1193
|
-
has_many :alias_names, String, tag: "aliasname"
|
1194
|
-
has_one :ecology, Ecology
|
1195
|
-
has_one :environment, String
|
1196
|
-
has_one :geography, Geography
|
1197
|
-
has_many :links, Link, tag: "link"
|
1198
|
-
has_one :name, String
|
1199
|
-
has_one :notes, Notes
|
1200
|
-
has_many :ratings, Rating, tag: "rating"
|
1201
|
-
has_one :side_data, SiteData, tag: "sitedata"
|
1202
|
-
end
|
1203
|
-
|
1204
|
-
class Guide
|
1205
|
-
include HappyMapper
|
1206
|
-
|
1207
|
-
tag "guide"
|
1208
|
-
|
1209
|
-
has_many :links, Link, tag: "link"
|
1210
|
-
end
|
1211
|
-
|
1212
|
-
class DiveBase
|
1213
|
-
include HappyMapper
|
1214
|
-
|
1215
|
-
tag "divebase"
|
1216
|
-
|
1217
|
-
attribute :id, String
|
1218
|
-
has_one :address, Base::Models::Address
|
1219
|
-
has_many :alias_names, String, tag: "aliasname"
|
1220
|
-
has_one :contact, Base::Models::Contact
|
1221
|
-
has_many :guides, Guide, tag: "guide"
|
1222
|
-
has_many :links, Link, tag: "link"
|
1223
|
-
has_one :name, String
|
1224
|
-
has_one :notes, Notes
|
1225
|
-
has_one :price_dive_package, PriceDivePackage, tag: "pricedivepackage"
|
1226
|
-
has_one :price_per_dive, Price, tag: "priceperdive"
|
1227
|
-
has_many :ratings, Rating, tag: "rating"
|
1228
|
-
end
|
1229
|
-
|
1230
|
-
class DiveSite
|
1231
|
-
include HappyMapper
|
1232
|
-
|
1233
|
-
tag "divesite"
|
1234
|
-
|
1235
|
-
has_many :dive_bases, DiveBase, tag: "divebase"
|
1236
|
-
has_many :sites, Site, tag: "site"
|
1237
|
-
end
|
1238
|
-
|
1239
|
-
class Shop
|
1240
|
-
include HappyMapper
|
1241
|
-
|
1242
|
-
tag "shop"
|
1243
|
-
|
1244
|
-
has_many :alias_names, String, tag: "aliasname"
|
1245
|
-
has_one :address, Base::Models::Address
|
1246
|
-
has_one :contact, Base::Models::Contact
|
1247
|
-
has_one :name, String
|
1248
|
-
has_one :notes, Notes
|
1249
|
-
end
|
1250
|
-
|
1251
|
-
class Business
|
1252
|
-
include HappyMapper
|
1253
|
-
|
1254
|
-
tag "business"
|
1255
|
-
|
1256
|
-
has_one :shop, Shop
|
1257
|
-
end
|
1258
|
-
|
1259
|
-
class Membership
|
1260
|
-
include HappyMapper
|
1261
|
-
|
1262
|
-
tag "membership"
|
1263
|
-
|
1264
|
-
attribute :organisation, String
|
1265
|
-
attribute :member_id, String
|
1266
|
-
end
|
1267
|
-
|
1268
|
-
class NumberOfDives
|
1269
|
-
include HappyMapper
|
1270
|
-
|
1271
|
-
tag "numberofdives"
|
1272
|
-
|
1273
|
-
has_one :start_date, DateTime, tag: "startdate"
|
1274
|
-
has_one :end_date, DateTime, tag: "enddate"
|
1275
|
-
has_one :dives, Integer
|
1276
|
-
end
|
1277
|
-
|
1278
|
-
class Personal
|
1279
|
-
include HappyMapper
|
1280
|
-
|
1281
|
-
tag "personal"
|
1282
|
-
|
1283
|
-
has_one :birth_date, Base::Models::DateTimeField, tag: "birthdate"
|
1284
|
-
has_one :birth_name, String, tag: "birthname"
|
1285
|
-
has_one :blood_group, String, tag: "bloodgroup"
|
1286
|
-
has_one :first_name, String, tag: "firstname"
|
1287
|
-
has_one :height, Float
|
1288
|
-
has_one :honorific, String
|
1289
|
-
has_one :last_name, String, tag: "lastname"
|
1290
|
-
has_one :membership, Membership
|
1291
|
-
has_one :middle_name, String, tag: "middlename"
|
1292
|
-
has_one :number_of_dives, NumberOfDives, tag: "numberofdives"
|
1293
|
-
has_one :sex, String
|
1294
|
-
has_one :smoking, String
|
1295
|
-
has_one :weight, Float
|
1296
|
-
end
|
1297
|
-
|
1298
|
-
class Instructor
|
1299
|
-
include HappyMapper
|
1300
|
-
|
1301
|
-
tag "instructor"
|
1302
|
-
|
1303
|
-
has_one :address, Base::Models::Address
|
1304
|
-
has_one :contact, Base::Models::Contact
|
1305
|
-
has_one :personal, Personal
|
1306
|
-
end
|
1307
|
-
|
1308
|
-
class Certification
|
1309
|
-
include HappyMapper
|
1310
|
-
|
1311
|
-
tag "certification"
|
1312
|
-
|
1313
|
-
has_one :certificate_number, String, tag: "certificatenumber"
|
1314
|
-
has_one :instructor, Instructor
|
1315
|
-
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1316
|
-
has_one :level, String
|
1317
|
-
has_one :link, Link
|
1318
|
-
has_one :organization, String
|
1319
|
-
has_one :specialty, String
|
1320
|
-
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1321
|
-
end
|
1322
|
-
|
1323
|
-
class Education
|
1324
|
-
include HappyMapper
|
1325
|
-
|
1326
|
-
tag "education"
|
1327
|
-
|
1328
|
-
has_many :certifications, Certification, tag: "certification"
|
1329
|
-
end
|
1330
|
-
|
1331
|
-
class Insurance
|
1332
|
-
include HappyMapper
|
1333
|
-
|
1334
|
-
tag "insurance"
|
1335
|
-
|
1336
|
-
has_many :alias_names, String, tag: "aliasname"
|
1337
|
-
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1338
|
-
has_one :name, String
|
1339
|
-
has_one :notes, Notes
|
1340
|
-
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1341
|
-
end
|
1342
|
-
|
1343
|
-
class DiveInsurances
|
1344
|
-
include HappyMapper
|
1345
|
-
|
1346
|
-
tag "diveinsurances"
|
1347
|
-
|
1348
|
-
has_many :insurances, Insurance, tag: "insurance"
|
1349
|
-
end
|
1350
|
-
|
1351
|
-
class Permit
|
1352
|
-
include HappyMapper
|
1353
|
-
|
1354
|
-
tag "permit"
|
1355
|
-
|
1356
|
-
has_many :alias_names, String, tag: "aliasname"
|
1357
|
-
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1358
|
-
has_one :name, String
|
1359
|
-
has_one :notes, Notes
|
1360
|
-
has_one :region, String
|
1361
|
-
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1362
|
-
end
|
1363
|
-
|
1364
|
-
class DivePermissions
|
1365
|
-
include HappyMapper
|
1366
|
-
|
1367
|
-
tag "divepermissions"
|
1368
|
-
|
1369
|
-
has_many :permits, Permit, tag: "permit"
|
1370
|
-
end
|
1371
|
-
|
1372
|
-
class Purchase
|
1373
|
-
include HappyMapper
|
1374
|
-
|
1375
|
-
tag "purchase"
|
1376
|
-
|
1377
|
-
has_one :datetime, DateTime
|
1378
|
-
has_one :link, Link
|
1379
|
-
has_one :price, Price
|
1380
|
-
has_one :shop, Shop
|
1381
|
-
end
|
1382
|
-
|
1383
|
-
class TemperatureSensor
|
1384
|
-
include HappyMapper
|
1385
|
-
|
1386
|
-
tag "temperaturesensor"
|
1387
|
-
|
1388
|
-
attribute :id, String
|
1389
|
-
|
1390
|
-
has_many :alias_names, String, tag: "aliasname"
|
1391
|
-
has_one :manufacturer, Manufacturer
|
1392
|
-
has_one :model, String
|
1393
|
-
has_one :name, String
|
1394
|
-
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
1395
|
-
has_one :notes, Notes
|
1396
|
-
has_one :purchase, Purchase
|
1397
|
-
has_one :serial_number, String, tag: "serialnumber"
|
1398
|
-
has_one :service_interval, Integer, tag: "serviceinterval"
|
1399
|
-
end
|
1400
|
-
|
1401
|
-
class TimerDevice
|
1402
|
-
include HappyMapper
|
1403
|
-
|
1404
|
-
tag "timerdevice"
|
1405
|
-
|
1406
|
-
attribute :id, String
|
1407
|
-
end
|
1408
|
-
|
1409
|
-
class EquipmentPart
|
1410
|
-
include HappyMapper
|
1411
|
-
|
1412
|
-
tag "equipmentpart"
|
1413
|
-
|
1414
|
-
attribute :id, String
|
1415
|
-
has_many :alias_names, String, tag: "aliasname"
|
1416
|
-
has_many :links, Link, tag: "link"
|
1417
|
-
has_one :manufacturer, Manufacturer
|
1418
|
-
has_one :model, String
|
1419
|
-
has_one :name, String
|
1420
|
-
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
1421
|
-
has_one :notes, Notes
|
1422
|
-
has_one :purchase, Purchase
|
1423
|
-
has_one :serial_number, String, tag: "serialnumber"
|
1424
|
-
has_one :service_interval, Integer, tag: "serviceinterval"
|
1425
|
-
end
|
1426
|
-
|
1427
|
-
class Lead < EquipmentPart
|
1428
|
-
include HappyMapper
|
1429
|
-
|
1430
|
-
tag "lead"
|
1431
|
-
|
1432
|
-
has_one :lead_quantity, Integer, tag: "leadquantity"
|
1433
|
-
end
|
1434
|
-
|
1435
|
-
class Rebreather < EquipmentPart
|
1436
|
-
include HappyMapper
|
1437
|
-
|
1438
|
-
tag "rebreather"
|
1439
|
-
|
1440
|
-
has_many :batteries, Battery, tag: "battery"
|
1441
|
-
has_many :o2_sensors, EquipmentPart, tag: "o2sensor"
|
1442
|
-
has_many :scrubber_monitors, ScrubberMonitor, tag: "scrubbermonitor"
|
1443
|
-
has_many :temperature_sensors, TemperatureSensor, tag: "temperaturesensor"
|
1444
|
-
has_many :timer_devices, TimerDevice, tag: "timerdevice"
|
1445
|
-
end
|
1446
|
-
|
1447
|
-
class Suit < EquipmentPart
|
1448
|
-
include HappyMapper
|
1449
|
-
|
1450
|
-
tag "suit"
|
1451
|
-
|
1452
|
-
has_one :suit_type, String, tag: "suittype"
|
1453
|
-
end
|
1454
|
-
|
1455
|
-
class Tank < EquipmentPart
|
1456
|
-
include HappyMapper
|
1457
|
-
|
1458
|
-
tag "tank"
|
1459
|
-
|
1460
|
-
has_one :tank_material, String, tag: "tankmaterial"
|
1461
|
-
has_one :tank_volume, Float, tag: "tankvolume"
|
1462
|
-
has_many :batteries, Battery, tag: "battery"
|
1463
|
-
has_one :hydro_service_interval, Integer, tag: "hydroserviceinterval"
|
1464
|
-
has_one :next_hydro_date, Base::Models::DateTimeField, tag: "nexthydrodate"
|
1465
|
-
has_one :next_visual_date, Base::Models::DateTimeField, tag: "nextvisualdate"
|
1466
|
-
has_one :rated_pressure, Float, tag: "ratedpressure"
|
1467
|
-
has_one :visual_service_interval, Integer, tag: "visualserviceinterval"
|
1468
|
-
end
|
1469
|
-
|
1470
|
-
class Camera
|
1471
|
-
include HappyMapper
|
1472
|
-
|
1473
|
-
tag "camera"
|
1474
|
-
|
1475
|
-
has_one :body, EquipmentPart
|
1476
|
-
has_many :flashes, EquipmentPart, tag: "flash"
|
1477
|
-
has_one :housing, EquipmentPart
|
1478
|
-
has_one :lens, EquipmentPart
|
1479
|
-
end
|
1480
|
-
|
1481
|
-
class DiveComputer < EquipmentPart
|
1482
|
-
include HappyMapper
|
1483
|
-
|
1484
|
-
tag "divecomputer"
|
632
|
+
tag "divecomputer"
|
1485
633
|
|
1486
634
|
has_many :batteries, Battery, tag: "battery"
|
1487
635
|
has_many :timer_devices, TimerDevice, tag: "timerdevice"
|
@@ -1517,9 +665,9 @@ module UDDF
|
|
1517
665
|
tag "equipmentconfiguration"
|
1518
666
|
|
1519
667
|
has_many :alias_names, String, tag: "aliasname"
|
1520
|
-
has_many :links, Link, tag: "link"
|
668
|
+
has_many :links, Base::Models::Link, tag: "link"
|
1521
669
|
has_one :name, String
|
1522
|
-
has_one :notes, Notes
|
670
|
+
has_one :notes, Base::Models::Notes
|
1523
671
|
end
|
1524
672
|
|
1525
673
|
class Equipment < EquipmentContent
|
@@ -1531,51 +679,18 @@ module UDDF
|
|
1531
679
|
has_one :equipment_configuration, EquipmentConfiguration, tag: "equipmentconfiguration"
|
1532
680
|
end
|
1533
681
|
|
1534
|
-
class Doctor
|
1535
|
-
include HappyMapper
|
1536
|
-
|
1537
|
-
tag "doctor"
|
1538
|
-
|
1539
|
-
attribute :id, String
|
1540
|
-
has_one :address, Base::Models::Address
|
1541
|
-
has_one :contact, Base::Models::Contact
|
1542
|
-
has_one :personal, Personal
|
1543
|
-
end
|
1544
|
-
|
1545
|
-
class Examination
|
1546
|
-
include HappyMapper
|
1547
|
-
|
1548
|
-
tag "examination"
|
1549
|
-
|
1550
|
-
has_one :datetime, DateTime
|
1551
|
-
has_one :doctor, Doctor
|
1552
|
-
has_one :examination_result, String, tag: "examinationresult"
|
1553
|
-
has_many :links, Link, tag: "link"
|
1554
|
-
has_one :notes, Notes
|
1555
|
-
has_one :total_lung_capacity, Float, tag: "totallungcapacity"
|
1556
|
-
has_one :vital_capacity, Float, tag: "vitalcapacity"
|
1557
|
-
end
|
1558
|
-
|
1559
|
-
class Medical
|
1560
|
-
include HappyMapper
|
1561
|
-
|
1562
|
-
tag "medical"
|
1563
|
-
|
1564
|
-
has_one :examination, Examination
|
1565
|
-
end
|
1566
|
-
|
1567
682
|
class BuddyOwnerShared
|
1568
683
|
include HappyMapper
|
1569
684
|
|
1570
685
|
attribute :id, String
|
1571
686
|
has_one :address, Base::Models::Address
|
1572
687
|
has_one :contact, Base::Models::Contact
|
1573
|
-
has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
|
1574
|
-
has_one :dive_permissions, DivePermissions, tag: "divepermissions"
|
688
|
+
has_one :dive_insurances, Base::Models::DiveInsurances, tag: "diveinsurances"
|
689
|
+
has_one :dive_permissions, Base::Models::DivePermissions, tag: "divepermissions"
|
1575
690
|
has_one :equipment, Equipment
|
1576
|
-
has_one :medical, Medical
|
1577
|
-
has_one :notes, Notes
|
1578
|
-
has_one :personal, Personal
|
691
|
+
has_one :medical, Base::Models::Medical
|
692
|
+
has_one :notes, Base::Models::Notes
|
693
|
+
has_one :personal, Base::Models::Personal
|
1579
694
|
end
|
1580
695
|
|
1581
696
|
class Buddy < BuddyOwnerShared
|
@@ -1584,7 +699,7 @@ module UDDF
|
|
1584
699
|
tag "buddy"
|
1585
700
|
|
1586
701
|
attribute :id, String
|
1587
|
-
has_one :certification,
|
702
|
+
has_one :certification, Base::Models::CertificationV322
|
1588
703
|
has_one :student, String
|
1589
704
|
end
|
1590
705
|
|
@@ -1594,7 +709,7 @@ module UDDF
|
|
1594
709
|
tag "owner"
|
1595
710
|
|
1596
711
|
attribute :id, String
|
1597
|
-
has_one :education,
|
712
|
+
has_one :education, Base::Models::EducationV322
|
1598
713
|
end
|
1599
714
|
|
1600
715
|
class Diver
|
@@ -1606,133 +721,6 @@ module UDDF
|
|
1606
721
|
has_one :owner, Owner
|
1607
722
|
end
|
1608
723
|
|
1609
|
-
class DCAlarm
|
1610
|
-
include HappyMapper
|
1611
|
-
|
1612
|
-
tag "dcalarm"
|
1613
|
-
|
1614
|
-
has_one :acknowledge, String
|
1615
|
-
has_one :alarm_type, Integer, tag: "alarmtype"
|
1616
|
-
has_one :period, Float
|
1617
|
-
end
|
1618
|
-
|
1619
|
-
class SetDCDiveDepthAlarm
|
1620
|
-
include HappyMapper
|
1621
|
-
|
1622
|
-
tag "setdcdivedethalarm"
|
1623
|
-
|
1624
|
-
has_one :dc_alarm, DCAlarm
|
1625
|
-
has_one :dc_alarm_depth, Float
|
1626
|
-
end
|
1627
|
-
|
1628
|
-
class SetDCDivePo2Alarm
|
1629
|
-
include HappyMapper
|
1630
|
-
|
1631
|
-
tag "setdcdivepo2alarm"
|
1632
|
-
|
1633
|
-
has_one :dc_alarm, DCAlarm
|
1634
|
-
has_one :maximum_po2, Float
|
1635
|
-
end
|
1636
|
-
|
1637
|
-
class SetDCDiveSiteData
|
1638
|
-
include HappyMapper
|
1639
|
-
|
1640
|
-
tag "setdcdivesitedata"
|
1641
|
-
|
1642
|
-
attribute :dive_site, String
|
1643
|
-
end
|
1644
|
-
|
1645
|
-
class SetDCDiveTimeAlarm
|
1646
|
-
include HappyMapper
|
1647
|
-
|
1648
|
-
tag "setdcdivetimealarm"
|
1649
|
-
|
1650
|
-
has_one :dc_alarm, DCAlarm
|
1651
|
-
has_one :timespan, Float
|
1652
|
-
end
|
1653
|
-
|
1654
|
-
class SetDCEndNDTAlarm
|
1655
|
-
include HappyMapper
|
1656
|
-
|
1657
|
-
tag "setdcendndtalarm"
|
1658
|
-
|
1659
|
-
has_one :dc_alarm, DCAlarm
|
1660
|
-
end
|
1661
|
-
|
1662
|
-
class SetDCDecoModel
|
1663
|
-
include HappyMapper
|
1664
|
-
|
1665
|
-
tag "setdcdecomodel"
|
1666
|
-
|
1667
|
-
has_many :alias_names, String, tag: "aliasname"
|
1668
|
-
has_one :application_data, ApplicationData
|
1669
|
-
has_one :name, String
|
1670
|
-
end
|
1671
|
-
|
1672
|
-
class SetDCBuddyData
|
1673
|
-
include HappyMapper
|
1674
|
-
|
1675
|
-
tag "setdcbuddydata"
|
1676
|
-
|
1677
|
-
attribute :buddy, String
|
1678
|
-
end
|
1679
|
-
|
1680
|
-
class SetDCData
|
1681
|
-
include HappyMapper
|
1682
|
-
|
1683
|
-
tag "setdcdata"
|
1684
|
-
|
1685
|
-
has_one :set_dc_alarm_time, DateTime
|
1686
|
-
has_one :set_dc_altitude, Float
|
1687
|
-
has_one :set_dc_buddy_data, SetDCBuddyData
|
1688
|
-
has_one :set_dc_date_time, DateTime
|
1689
|
-
has_one :set_dc_deco_model, SetDCDecoModel
|
1690
|
-
has_one :set_dc_dive_depth_alarm, SetDCDiveDepthAlarm
|
1691
|
-
has_one :set_dc_dive_po2_alarm, SetDCDivePo2Alarm
|
1692
|
-
has_many :set_dc_dive_site_data, SetDCDiveSiteData, tag: "setdcdivesitedata"
|
1693
|
-
has_one :set_dc_dive_time_alarm, SetDCDiveTimeAlarm
|
1694
|
-
has_one :set_dc_end_ndt_alarm, SetDCEndNDTAlarm
|
1695
|
-
has_one :set_dc_gas_definitions_data, String
|
1696
|
-
has_one :set_dc_owner_data, String
|
1697
|
-
has_one :set_dc_password, String
|
1698
|
-
has_one :set_dc_generator_data, String
|
1699
|
-
end
|
1700
|
-
|
1701
|
-
class GetDCData
|
1702
|
-
include HappyMapper
|
1703
|
-
|
1704
|
-
tag "getdcdata"
|
1705
|
-
|
1706
|
-
has_one :get_dc_all_data, String
|
1707
|
-
has_one :get_dc_generator_data, String
|
1708
|
-
has_one :get_dc_owner_data, String
|
1709
|
-
has_one :get_dc_buddy_data, String
|
1710
|
-
has_one :get_dc_gas_definitions_data, String
|
1711
|
-
has_one :get_dc_dive_site_data, String
|
1712
|
-
has_one :get_dc_dive_trip_data, String
|
1713
|
-
has_one :get_dc_profile_data, String
|
1714
|
-
end
|
1715
|
-
|
1716
|
-
class DiveComputerDump
|
1717
|
-
include HappyMapper
|
1718
|
-
|
1719
|
-
tag "divecomputerdump"
|
1720
|
-
|
1721
|
-
has_one :datetime, DateTime
|
1722
|
-
has_one :dc_dump, String
|
1723
|
-
has_one :link, Link
|
1724
|
-
end
|
1725
|
-
|
1726
|
-
class DiveComputerControl
|
1727
|
-
include HappyMapper
|
1728
|
-
|
1729
|
-
tag "divecomputercontrol"
|
1730
|
-
|
1731
|
-
has_many :dive_computer_dumps, DiveComputerDump, tag: "divecomputerdump"
|
1732
|
-
has_one :get_dc_data, GetDCData, tag: "getdcdata"
|
1733
|
-
has_one :set_dc_data, SetDCData, tag: "setdcdata"
|
1734
|
-
end
|
1735
|
-
|
1736
724
|
class Uddf
|
1737
725
|
include HappyMapper
|
1738
726
|
|
@@ -1740,15 +728,15 @@ module UDDF
|
|
1740
728
|
|
1741
729
|
attribute :version, String
|
1742
730
|
has_one :business, Business
|
1743
|
-
has_one :deco_model,
|
1744
|
-
has_one :dive_computer_control,
|
731
|
+
has_one :deco_model, Base::Models::DecoModelV320, tag: "decomodel"
|
732
|
+
has_one :dive_computer_control, Base::Models::DiveComputerControlV330, tag: "divecomputercontrol"
|
1745
733
|
has_one :diver, Diver
|
1746
|
-
has_one :dive_site, DiveSite, tag: "divesite"
|
1747
|
-
has_one :dive_trip, DiveTrip, tag: "divetrip"
|
1748
|
-
has_one :gas_definitions, GasDefinitions, tag: "gasdefinitions"
|
1749
|
-
has_one :generator, Generator
|
734
|
+
has_one :dive_site, Base::Models::DiveSite, tag: "divesite"
|
735
|
+
has_one :dive_trip, Base::Models::DiveTrip, tag: "divetrip"
|
736
|
+
has_one :gas_definitions, Base::Models::GasDefinitions, tag: "gasdefinitions"
|
737
|
+
has_one :generator, Base::Models::Generator
|
1750
738
|
has_one :maker, Maker
|
1751
|
-
has_one :media_data, MediaData, tag: "mediadata"
|
739
|
+
has_one :media_data, Base::Models::MediaData, tag: "mediadata"
|
1752
740
|
has_one :profile_data, ProfileData, tag: "profiledata"
|
1753
741
|
has_one :table_generation, TableGeneration, tag: "tablegeneration"
|
1754
742
|
end
|