uddf 0.3.0 → 0.4.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 +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 +787 -0
- data/lib/uddf/base/models/media.rb +66 -0
- data/lib/uddf/base/models.rb +6 -69
- data/lib/uddf/v300/models.rb +563 -0
- data/lib/uddf/v301/models.rb +564 -0
- data/lib/uddf/v310/models.rb +611 -0
- data/lib/uddf/v320/models.rb +632 -0
- data/lib/uddf/v321/models.rb +10 -0
- data/lib/uddf/v322/models.rb +636 -0
- data/lib/uddf/v323/models.rb +113 -1087
- data/lib/uddf/v330/models.rb +122 -1083
- data/lib/uddf/v331/models.rb +124 -1085
- data/lib/uddf/version.rb +1 -1
- data/lib/uddf.rb +7 -12
- metadata +11 -1
data/lib/uddf/v330/models.rb
CHANGED
@@ -61,140 +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
64
|
class WayAltitude
|
199
65
|
include HappyMapper
|
200
66
|
|
@@ -387,26 +253,10 @@ module UDDF
|
|
387
253
|
has_many :infos, Info, tag: "info"
|
388
254
|
has_many :ppco2s, PPCo2, tag: "ppco2"
|
389
255
|
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"
|
256
|
+
# Added in v3.2.2
|
257
|
+
has_one :body_temperature, Float, tag: "bodytemperature"
|
258
|
+
has_one :pulse_rate, Float, tag: "pulserate"
|
259
|
+
has_many :set_markers, String, tag: "setmarker"
|
410
260
|
end
|
411
261
|
|
412
262
|
class PlannedProfile
|
@@ -419,33 +269,13 @@ module UDDF
|
|
419
269
|
has_many :waypoints, Waypoint, tag: "waypoint"
|
420
270
|
end
|
421
271
|
|
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
272
|
class InformationBeforeDive
|
443
273
|
include HappyMapper
|
444
274
|
|
445
275
|
tag "informationbeforedive"
|
446
276
|
|
447
277
|
has_one :air_temperature, Float, tag: "airtemperature"
|
448
|
-
has_one :alcohol_before_dive, AlcoholBeforeDive, tag: "alcoholbeforedive"
|
278
|
+
has_one :alcohol_before_dive, Base::Models::AlcoholBeforeDive, tag: "alcoholbeforedive"
|
449
279
|
has_one :altitude, Float
|
450
280
|
has_one :apparatus, String
|
451
281
|
has_one :datetime, DateTime
|
@@ -453,12 +283,12 @@ module UDDF
|
|
453
283
|
has_one :dive_number, Integer, tag: "divenumber"
|
454
284
|
has_one :dive_number_of_day, Integer, tag: "divenumberofday"
|
455
285
|
has_one :internal_dive_number, Integer, tag: "internaldivenumber"
|
456
|
-
has_many :links, Link, tag: "link"
|
457
|
-
has_one :medication_before_dive, MedicationBeforeDive, tag: "medicationbeforedive"
|
286
|
+
has_many :links, Base::Models::Link, tag: "link"
|
287
|
+
has_one :medication_before_dive, Base::Models::MedicationBeforeDive, tag: "medicationbeforedive"
|
458
288
|
has_one :no_suit, String, tag: "nosuit"
|
459
289
|
has_one :planned_profile, PlannedProfile, tag: "plannedprofile"
|
460
290
|
has_one :platform, String
|
461
|
-
has_one :price, Price
|
291
|
+
has_one :price, Base::Models::Price
|
462
292
|
has_one :purpose, String
|
463
293
|
has_many :rebreather_self_tests, RebreatherSelfTest, tag: "rebreatherselftest"
|
464
294
|
has_one :state_of_rest_before_dive, String, tag: "stateofrestbeforedive"
|
@@ -469,15 +299,6 @@ module UDDF
|
|
469
299
|
has_many :timers, Timer, tag: "timer"
|
470
300
|
end
|
471
301
|
|
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
302
|
class GlobalAlarmsGiven
|
482
303
|
include HappyMapper
|
483
304
|
|
@@ -492,113 +313,7 @@ module UDDF
|
|
492
313
|
tag "equipmentused"
|
493
314
|
|
494
315
|
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
|
316
|
+
has_many :links, Base::Models::Link, tag: "link"
|
602
317
|
end
|
603
318
|
|
604
319
|
class InformationAfterDive
|
@@ -606,7 +321,7 @@ module UDDF
|
|
606
321
|
|
607
322
|
tag "informationafterdive"
|
608
323
|
|
609
|
-
has_one :any_symptoms, AnySymptoms, tag: "anysymptoms"
|
324
|
+
has_one :any_symptoms, Base::Models::AnySymptoms, tag: "anysymptoms"
|
610
325
|
has_one :average_depth, Float, tag: "averagedepth"
|
611
326
|
has_one :current, String
|
612
327
|
has_one :desaturation_time, Float, tag: "desaturationtime"
|
@@ -620,12 +335,12 @@ module UDDF
|
|
620
335
|
has_one :highest_po2, Float, tag: "highestpo2"
|
621
336
|
has_one :lowest_temperature, Float, tag: "lowesttemperature"
|
622
337
|
has_one :no_flight_time, Float, tag: "noflighttime"
|
623
|
-
has_one :notes, Notes
|
624
|
-
has_one :observations, Observations
|
338
|
+
has_one :notes, Base::Models::Notes
|
339
|
+
has_one :observations, Base::Models::Observations
|
625
340
|
has_one :pressure_drop, Float, tag: "pressuredrop"
|
626
341
|
has_many :problems, String, tag: "problems"
|
627
342
|
has_one :program, String
|
628
|
-
has_many :ratings, Rating, tag: "rating"
|
343
|
+
has_many :ratings, Base::Models::Rating, tag: "rating"
|
629
344
|
has_one :surface_interval_after_dive, SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
|
630
345
|
has_one :thermal_comfort, String, tag: "thermalcomfort"
|
631
346
|
has_many :timers, Timer, tag: "timer"
|
@@ -651,35 +366,12 @@ module UDDF
|
|
651
366
|
has_one :analysed_he, Float, tag: "analysedhe"
|
652
367
|
has_one :analysed_o2, Float, tag: "analysedo2"
|
653
368
|
has_one :breathing_consumption_volume, Float, tag: "breathingconsumptionvolume"
|
654
|
-
has_many :links, Link, tag: "link"
|
369
|
+
has_many :links, Base::Models::Link, tag: "link"
|
655
370
|
has_one :tank_pressure_begin, Float, tag: "tankpressurebegin"
|
656
371
|
has_one :tank_pressure_end, Float, tag: "tankpressureend"
|
657
372
|
has_one :tank_volume, Float, tag: "tankvolume"
|
658
373
|
end
|
659
374
|
|
660
|
-
class Hargikas
|
661
|
-
include HappyMapper
|
662
|
-
|
663
|
-
tag "hargikas"
|
664
|
-
|
665
|
-
has_one :ambient, Float
|
666
|
-
has_many :tissues, Tissue, tag: "tissue"
|
667
|
-
has_one :arterial_micro_bubble_level, Integer, tag: "arterialmicrobubbleLevel"
|
668
|
-
has_one :intrapulmonary_right_left_shunt, Float, tag: "intrapulmonaryrightleftshunt"
|
669
|
-
has_one :estimated_skin_cool_level, Integer, tag: "estimatedskincoolLevel"
|
670
|
-
end
|
671
|
-
|
672
|
-
class ApplicationData
|
673
|
-
include HappyMapper
|
674
|
-
|
675
|
-
tag "applicationdata"
|
676
|
-
|
677
|
-
has_one :deco_trainer, String, tag: "decotrainer"
|
678
|
-
has_one :hargikas, Hargikas
|
679
|
-
has_one :apdiving, String
|
680
|
-
has_one :ratio, String
|
681
|
-
end
|
682
|
-
|
683
375
|
class Dive
|
684
376
|
include HappyMapper
|
685
377
|
|
@@ -688,7 +380,7 @@ module UDDF
|
|
688
380
|
attribute :id, String
|
689
381
|
has_one :information_after_dive, InformationAfterDive, tag: "informationafterdive"
|
690
382
|
has_one :information_before_dive, InformationBeforeDive, tag: "informationbeforedive"
|
691
|
-
has_one :application_data,
|
383
|
+
has_one :application_data, Base::Models::ApplicationDataV330, tag: "applicationdata"
|
692
384
|
has_one :samples, Samples
|
693
385
|
has_many :tank_data, TankData, tag: "tankdata"
|
694
386
|
end
|
@@ -740,7 +432,7 @@ module UDDF
|
|
740
432
|
|
741
433
|
tag "inputprofile"
|
742
434
|
|
743
|
-
has_many :links, Link, tag: "link"
|
435
|
+
has_many :links, Base::Models::Link, tag: "link"
|
744
436
|
has_many :waypoints, Waypoint, tag: "waypoint"
|
745
437
|
end
|
746
438
|
|
@@ -761,12 +453,12 @@ module UDDF
|
|
761
453
|
|
762
454
|
tag "profile"
|
763
455
|
|
764
|
-
has_one :application_data,
|
765
|
-
has_one :deco_model,
|
456
|
+
has_one :application_data, Base::Models::ApplicationDataV330, tag: "applicationdata"
|
457
|
+
has_one :deco_model, Base::Models::DecoModelV320, tag: "decomodel"
|
766
458
|
has_one :deep_stops, DeepStops, tag: "deepstops"
|
767
459
|
has_one :density, Float
|
768
460
|
has_one :input_profile, InputProfile, tag: "inputprofile"
|
769
|
-
has_many :links, Link, tag: "link"
|
461
|
+
has_many :links, Base::Models::Link, tag: "link"
|
770
462
|
has_one :maximum_ascending_rate, Float, tag: "maximumascendingrate"
|
771
463
|
has_one :mix_change, MixChange, tag: "mixchange"
|
772
464
|
has_one :output, Output
|
@@ -838,9 +530,9 @@ module UDDF
|
|
838
530
|
tag "bottomtimetable"
|
839
531
|
|
840
532
|
attribute :id, String
|
841
|
-
has_one :application_data,
|
533
|
+
has_one :application_data, Base::Models::ApplicationDataV330, tag: "applicationdata"
|
842
534
|
has_one :bottom_time_table_scope, BottomTimeTableScope, tag: "bottomtimetablescope"
|
843
|
-
has_many :links, Link, tag: "link"
|
535
|
+
has_many :links, Base::Models::Link, tag: "link"
|
844
536
|
has_one :output, Output
|
845
537
|
has_one :title, String
|
846
538
|
end
|
@@ -863,706 +555,180 @@ module UDDF
|
|
863
555
|
has_one :calculate_table, CalculateTable, tag: "calculatetable"
|
864
556
|
end
|
865
557
|
|
866
|
-
class
|
558
|
+
class Maker
|
867
559
|
include HappyMapper
|
868
560
|
|
869
|
-
tag "
|
561
|
+
tag "maker"
|
870
562
|
|
871
|
-
|
872
|
-
has_one :datetime, DateTime
|
873
|
-
has_one :exposure_compensation, Float, tag: "exposurecompensation"
|
874
|
-
has_one :film_speed, Integer, tag: "filmspeed"
|
875
|
-
has_one :focal_length, Float, tag: "focallength"
|
876
|
-
has_one :focusing_distance, Float, tag: "focusingdistance"
|
877
|
-
has_one :metering_method, String, tag: "meteringmethod"
|
878
|
-
has_one :shutter_speed, Float, tag: "shutterspeed"
|
563
|
+
has_many :manufacturers, Base::Models::Manufacturer, tag: "manufacturer"
|
879
564
|
end
|
880
565
|
|
881
|
-
class
|
566
|
+
class Business
|
882
567
|
include HappyMapper
|
883
568
|
|
884
|
-
tag "
|
569
|
+
tag "business"
|
885
570
|
|
886
|
-
|
887
|
-
attribute :height, Integer
|
888
|
-
attribute :width, Integer
|
889
|
-
attribute :format, String
|
890
|
-
has_one :image_data, ImageData, tag: "imagedata"
|
891
|
-
has_one :object_name, String, tag: "objectname"
|
892
|
-
has_one :title, String
|
571
|
+
has_one :shop, Base::Models::Shop
|
893
572
|
end
|
894
573
|
|
895
|
-
class
|
574
|
+
class TemperatureSensor
|
896
575
|
include HappyMapper
|
897
576
|
|
898
|
-
tag "
|
577
|
+
tag "temperaturesensor"
|
899
578
|
|
900
579
|
attribute :id, String
|
901
|
-
|
902
|
-
|
580
|
+
|
581
|
+
has_many :alias_names, String, tag: "aliasname"
|
582
|
+
has_one :manufacturer, Base::Models::Manufacturer
|
583
|
+
has_one :model, String
|
584
|
+
has_one :name, String
|
585
|
+
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
586
|
+
has_one :notes, Base::Models::Notes
|
587
|
+
has_one :purchase, Base::Models::Purchase
|
588
|
+
has_one :serial_number, String, tag: "serialnumber"
|
589
|
+
has_one :service_interval, Integer, tag: "serviceinterval"
|
903
590
|
end
|
904
591
|
|
905
|
-
class
|
592
|
+
class TimerDevice
|
906
593
|
include HappyMapper
|
907
594
|
|
908
|
-
tag "
|
595
|
+
tag "timerdevice"
|
909
596
|
|
910
597
|
attribute :id, String
|
911
|
-
has_one :object_name, String, tag: "objectname"
|
912
|
-
has_one :title, String
|
913
598
|
end
|
914
599
|
|
915
|
-
class
|
600
|
+
class EquipmentPart
|
916
601
|
include HappyMapper
|
917
602
|
|
918
|
-
tag "
|
603
|
+
tag "equipmentpart"
|
919
604
|
|
920
|
-
|
921
|
-
has_many :
|
922
|
-
has_many :
|
605
|
+
attribute :id, String
|
606
|
+
has_many :alias_names, String, tag: "aliasname"
|
607
|
+
has_many :links, Base::Models::Link, tag: "link"
|
608
|
+
has_one :manufacturer, Base::Models::Manufacturer
|
609
|
+
has_one :model, String
|
610
|
+
has_one :name, String
|
611
|
+
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
612
|
+
has_one :notes, Base::Models::Notes
|
613
|
+
has_one :purchase, Base::Models::Purchase
|
614
|
+
has_one :serial_number, String, tag: "serialnumber"
|
615
|
+
has_one :service_interval, Integer, tag: "serviceinterval"
|
923
616
|
end
|
924
617
|
|
925
|
-
class
|
618
|
+
class Lead < EquipmentPart
|
926
619
|
include HappyMapper
|
927
620
|
|
928
|
-
tag "
|
621
|
+
tag "lead"
|
929
622
|
|
930
|
-
|
623
|
+
has_one :lead_quantity, Integer, tag: "leadquantity"
|
931
624
|
end
|
932
625
|
|
933
|
-
class
|
626
|
+
class Rebreather < EquipmentPart
|
934
627
|
include HappyMapper
|
935
628
|
|
936
|
-
tag "
|
629
|
+
tag "rebreather"
|
937
630
|
|
938
|
-
|
939
|
-
|
940
|
-
|
631
|
+
has_many :batteries, Battery, tag: "battery"
|
632
|
+
has_many :o2_sensors, EquipmentPart, tag: "o2sensor"
|
633
|
+
has_many :scrubber_monitors, ScrubberMonitor, tag: "scrubbermonitor"
|
634
|
+
has_many :temperature_sensors, TemperatureSensor, tag: "temperaturesensor"
|
635
|
+
has_many :timer_devices, TimerDevice, tag: "timerdevice"
|
941
636
|
end
|
942
637
|
|
943
|
-
class
|
638
|
+
class Suit < EquipmentPart
|
944
639
|
include HappyMapper
|
945
640
|
|
946
|
-
tag "
|
641
|
+
tag "suit"
|
947
642
|
|
948
|
-
|
643
|
+
has_one :suit_type, String, tag: "suittype"
|
949
644
|
end
|
950
645
|
|
951
|
-
class
|
646
|
+
class Tank < EquipmentPart
|
952
647
|
include HappyMapper
|
953
648
|
|
954
|
-
tag "
|
649
|
+
tag "tank"
|
955
650
|
|
956
|
-
has_one :
|
957
|
-
has_one :
|
958
|
-
|
959
|
-
has_one :length, Float
|
960
|
-
has_one :tonnage, Float
|
651
|
+
has_one :tank_material, String, tag: "tankmaterial"
|
652
|
+
has_one :tank_volume, Float, tag: "tankvolume"
|
653
|
+
has_many :batteries, Battery, tag: "battery"
|
961
654
|
end
|
962
655
|
|
963
|
-
class
|
656
|
+
class Camera
|
964
657
|
include HappyMapper
|
965
658
|
|
966
|
-
tag "
|
659
|
+
tag "camera"
|
967
660
|
|
968
|
-
has_one :
|
969
|
-
has_many :
|
970
|
-
has_one :
|
971
|
-
has_one :
|
972
|
-
has_one :name, String
|
973
|
-
has_one :notes, Notes
|
974
|
-
has_many :ratings, Rating, tag: "rating"
|
975
|
-
has_one :ship_dimension, ShipDimension, tag: "shipdimension"
|
976
|
-
has_one :ship_type, String, tag: "shiptype"
|
661
|
+
has_one :body, EquipmentPart
|
662
|
+
has_many :flashes, EquipmentPart, tag: "flash"
|
663
|
+
has_one :housing, EquipmentPart
|
664
|
+
has_one :lens, EquipmentPart
|
977
665
|
end
|
978
666
|
|
979
|
-
class
|
667
|
+
class DiveComputer < EquipmentPart
|
980
668
|
include HappyMapper
|
981
669
|
|
982
|
-
tag "
|
670
|
+
tag "divecomputer"
|
983
671
|
|
984
|
-
has_many :
|
985
|
-
|
986
|
-
has_one :contact, Base::Models::Contact
|
987
|
-
has_one :name, String
|
988
|
-
has_one :notes, Notes
|
989
|
-
has_many :ratings, Rating, tag: "rating"
|
672
|
+
has_many :batteries, Battery, tag: "battery"
|
673
|
+
has_many :timer_devices, TimerDevice, tag: "timerdevice"
|
990
674
|
end
|
991
675
|
|
992
|
-
class
|
676
|
+
class EquipmentContent
|
993
677
|
include HappyMapper
|
994
678
|
|
995
|
-
tag "
|
996
|
-
|
997
|
-
|
998
|
-
|
679
|
+
has_many :boots, EquipmentPart, tag: "boots"
|
680
|
+
has_many :buoyancy_control_devices, EquipmentPart, tag: "buoyancycontroldevice"
|
681
|
+
has_many :cameras, Camera, tag: "camera"
|
682
|
+
has_many :compasses, EquipmentPart, tag: "compass"
|
683
|
+
has_many :dive_computers, DiveComputer, tag: "divecomputer"
|
684
|
+
has_many :fins, EquipmentPart, tag: "fins"
|
685
|
+
has_many :gloves, EquipmentPart, tag: "gloves"
|
686
|
+
has_many :knives, EquipmentPart, tag: "knife"
|
687
|
+
has_many :leads, Lead, tag: "lead"
|
688
|
+
has_many :lights, EquipmentPart, tag: "light"
|
689
|
+
has_many :masks, EquipmentPart, tag: "mask"
|
690
|
+
has_many :rebreathers, Rebreather, tag: "rebreather"
|
691
|
+
has_many :regulators, EquipmentPart, tag: "regulator"
|
692
|
+
has_many :scooters, EquipmentPart, tag: "scooter"
|
693
|
+
has_many :suits, Suit, tag: "suit"
|
694
|
+
has_many :tanks, Tank, tag: "tank"
|
695
|
+
has_many :various_pieces, EquipmentPart, tag: "variouspieces"
|
696
|
+
has_many :video_cameras, EquipmentPart, tag: "videocamera"
|
697
|
+
has_many :watches, EquipmentPart, tag: "watch"
|
999
698
|
end
|
1000
699
|
|
1001
|
-
class
|
700
|
+
class EquipmentConfiguration < EquipmentContent
|
1002
701
|
include HappyMapper
|
1003
702
|
|
1004
|
-
tag "
|
703
|
+
tag "equipmentconfiguration"
|
1005
704
|
|
1006
|
-
has_one :address, Base::Models::Address
|
1007
705
|
has_many :alias_names, String, tag: "aliasname"
|
1008
|
-
|
1009
|
-
has_one :contact, Base::Models::Contact
|
706
|
+
has_many :links, Base::Models::Link, tag: "link"
|
1010
707
|
has_one :name, String
|
1011
|
-
has_one :notes, Notes
|
1012
|
-
has_many :ratings, Rating, tag: "rating"
|
708
|
+
has_one :notes, Base::Models::Notes
|
1013
709
|
end
|
1014
710
|
|
1015
|
-
class
|
711
|
+
class Equipment < EquipmentContent
|
1016
712
|
include HappyMapper
|
1017
713
|
|
1018
|
-
tag "
|
1019
|
-
|
1020
|
-
has_one :address, Base::Models::Address
|
1021
|
-
has_one :altitude, Float
|
1022
|
-
has_one :latitude, Float
|
1023
|
-
has_one :location, String
|
1024
|
-
has_one :longitude, Float
|
1025
|
-
has_one :time_zone, Float, tag: "timezone"
|
1026
|
-
end
|
1027
|
-
|
1028
|
-
class TripPart
|
1029
|
-
include HappyMapper
|
1030
|
-
|
1031
|
-
tag "trippart"
|
1032
|
-
|
1033
|
-
attribute :type, String
|
1034
|
-
has_one :accommodation, Accommodation
|
1035
|
-
has_one :date_of_trip, DateOfTrip, tag: "dateoftrip"
|
1036
|
-
has_one :geography, Geography
|
1037
|
-
has_many :links, Link, tag: "link"
|
1038
|
-
has_one :name, String
|
1039
|
-
has_one :notes, Notes
|
1040
|
-
has_one :operator, Operator
|
1041
|
-
has_one :price_dive_package, PriceDivePackage, tag: "pricedivepackage"
|
1042
|
-
has_one :price_per_dive, Price, tag: "priceperdive"
|
1043
|
-
has_one :related_dives, RelatedDives, tag: "relateddives"
|
1044
|
-
has_one :vessel, Vessel
|
1045
|
-
end
|
1046
|
-
|
1047
|
-
class Trip
|
1048
|
-
include HappyMapper
|
1049
|
-
|
1050
|
-
tag "trip"
|
1051
|
-
|
1052
|
-
attribute :id, String
|
1053
|
-
has_many :alias_names, String, tag: "aliasname"
|
1054
|
-
has_one :name, String
|
1055
|
-
has_many :ratings, Rating, tag: "rating"
|
1056
|
-
has_many :trip_parts, TripPart, tag: "trippart"
|
1057
|
-
end
|
1058
|
-
|
1059
|
-
class DiveTrip
|
1060
|
-
include HappyMapper
|
1061
|
-
|
1062
|
-
tag "divetrip"
|
1063
|
-
|
1064
|
-
has_many :trips, Trip, tag: "trip"
|
1065
|
-
end
|
1066
|
-
|
1067
|
-
class Ecology
|
1068
|
-
include HappyMapper
|
1069
|
-
|
1070
|
-
tag "ecology"
|
1071
|
-
|
1072
|
-
has_one :fauna, Fauna
|
1073
|
-
has_one :flora, Flora
|
1074
|
-
end
|
1075
|
-
|
1076
|
-
class Built
|
1077
|
-
include HappyMapper
|
1078
|
-
|
1079
|
-
tag "built"
|
1080
|
-
|
1081
|
-
has_one :launching_date, Base::Models::DateTimeField, tag: "launchingdate"
|
1082
|
-
has_one :ship_yard, String, tag: "shipyard"
|
1083
|
-
end
|
1084
|
-
|
1085
|
-
class Wreck
|
1086
|
-
include HappyMapper
|
1087
|
-
|
1088
|
-
tag "wreck"
|
1089
|
-
|
1090
|
-
has_many :alias_names, String, tag: "aliasname"
|
1091
|
-
has_one :built, Built
|
1092
|
-
has_one :name, String
|
1093
|
-
has_one :nationality, String
|
1094
|
-
has_one :ship_dimension, ShipDimension, tag: "shipdimension"
|
1095
|
-
has_one :ship_type, String, tag: "shiptype"
|
1096
|
-
has_one :sunk, Base::Models::DateTimeField
|
1097
|
-
end
|
1098
|
-
|
1099
|
-
class Shore
|
1100
|
-
include HappyMapper
|
1101
|
-
|
1102
|
-
tag "shore"
|
1103
|
-
|
1104
|
-
attribute :id, String
|
1105
|
-
has_many :alias_names, String, tag: "aliasname"
|
1106
|
-
has_one :name, String
|
1107
|
-
has_one :notes, Notes
|
1108
|
-
end
|
1109
|
-
|
1110
|
-
class River
|
1111
|
-
include HappyMapper
|
1112
|
-
|
1113
|
-
tag "river"
|
1114
|
-
|
1115
|
-
attribute :id, String
|
1116
|
-
has_many :alias_names, String, tag: "aliasname"
|
1117
|
-
has_one :name, String
|
1118
|
-
has_one :notes, Notes
|
1119
|
-
end
|
1120
|
-
|
1121
|
-
class Lake
|
1122
|
-
include HappyMapper
|
1123
|
-
|
1124
|
-
tag "lake"
|
1125
|
-
|
1126
|
-
attribute :id, String
|
1127
|
-
has_many :alias_names, String, tag: "aliasname"
|
1128
|
-
has_one :name, String
|
1129
|
-
has_one :notes, Notes
|
1130
|
-
end
|
1131
|
-
|
1132
|
-
class Indoor
|
1133
|
-
include HappyMapper
|
1134
|
-
|
1135
|
-
tag "indoor"
|
1136
|
-
|
1137
|
-
has_one :address, Base::Models::Address
|
1138
|
-
has_many :alias_names, String, tag: "aliasname"
|
1139
|
-
has_one :contact, Base::Models::Contact
|
1140
|
-
has_one :name, String
|
1141
|
-
has_one :notes, Notes
|
1142
|
-
end
|
1143
|
-
|
1144
|
-
class Cave
|
1145
|
-
include HappyMapper
|
1146
|
-
|
1147
|
-
tag "cave"
|
1148
|
-
|
1149
|
-
attribute :id, String
|
1150
|
-
has_many :alias_names, String, tag: "aliasname"
|
1151
|
-
has_one :name, String
|
1152
|
-
has_one :notes, Notes
|
1153
|
-
end
|
1154
|
-
|
1155
|
-
class SiteData
|
1156
|
-
include HappyMapper
|
1157
|
-
|
1158
|
-
tag "sidedata"
|
1159
|
-
|
1160
|
-
has_one :area_length, Float, tag: "arealength"
|
1161
|
-
has_one :area_width, Float, tag: "areawidth"
|
1162
|
-
has_one :average_visibility, Float, tag: "averagevisibility"
|
1163
|
-
has_one :bottom, String
|
1164
|
-
has_one :cave, Cave
|
1165
|
-
has_one :density, Float
|
1166
|
-
has_one :difficulty, Integer
|
1167
|
-
has_one :global_light_intensity, String, tag: "globallightintensity"
|
1168
|
-
has_one :indoor, Indoor
|
1169
|
-
has_one :maximum_depth, Float, tag: "maximumdepth"
|
1170
|
-
has_one :maximum_visibility, Float, tag: "maximumvisibility"
|
1171
|
-
has_one :minimum_depth, Float, tag: "minimumdepth"
|
1172
|
-
has_one :minimum_visibility, Float, tag: "minimumvisibility"
|
1173
|
-
has_one :river, River
|
1174
|
-
has_one :shore, Shore
|
1175
|
-
has_one :terrain, String
|
1176
|
-
has_one :wreck, Wreck
|
1177
|
-
end
|
1178
|
-
|
1179
|
-
class Site
|
1180
|
-
include HappyMapper
|
1181
|
-
|
1182
|
-
tag "site"
|
1183
|
-
|
1184
|
-
attribute :id, String
|
1185
|
-
has_many :alias_names, String, tag: "aliasname"
|
1186
|
-
has_one :ecology, Ecology
|
1187
|
-
has_one :environment, String
|
1188
|
-
has_one :geography, Geography
|
1189
|
-
has_many :links, Link, tag: "link"
|
1190
|
-
has_one :name, String
|
1191
|
-
has_one :notes, Notes
|
1192
|
-
has_many :ratings, Rating, tag: "rating"
|
1193
|
-
has_one :side_data, SiteData, tag: "sitedata"
|
1194
|
-
end
|
1195
|
-
|
1196
|
-
class Guide
|
1197
|
-
include HappyMapper
|
1198
|
-
|
1199
|
-
tag "guide"
|
1200
|
-
|
1201
|
-
has_many :links, Link, tag: "link"
|
1202
|
-
end
|
1203
|
-
|
1204
|
-
class DiveBase
|
1205
|
-
include HappyMapper
|
1206
|
-
|
1207
|
-
tag "divebase"
|
1208
|
-
|
1209
|
-
attribute :id, String
|
1210
|
-
has_one :address, Base::Models::Address
|
1211
|
-
has_many :alias_names, String, tag: "aliasname"
|
1212
|
-
has_one :contact, Base::Models::Contact
|
1213
|
-
has_many :guides, Guide, tag: "guide"
|
1214
|
-
has_many :links, Link, tag: "link"
|
1215
|
-
has_one :name, String
|
1216
|
-
has_one :notes, Notes
|
1217
|
-
has_one :price_dive_package, PriceDivePackage, tag: "pricedivepackage"
|
1218
|
-
has_one :price_per_dive, Price, tag: "priceperdive"
|
1219
|
-
has_many :ratings, Rating, tag: "rating"
|
1220
|
-
end
|
1221
|
-
|
1222
|
-
class DiveSite
|
1223
|
-
include HappyMapper
|
1224
|
-
|
1225
|
-
tag "divesite"
|
1226
|
-
|
1227
|
-
has_many :dive_bases, DiveBase, tag: "divebase"
|
1228
|
-
has_many :sites, Site, tag: "site"
|
1229
|
-
end
|
1230
|
-
|
1231
|
-
class Shop
|
1232
|
-
include HappyMapper
|
1233
|
-
|
1234
|
-
tag "shop"
|
1235
|
-
|
1236
|
-
has_many :alias_names, String, tag: "aliasname"
|
1237
|
-
has_one :address, Base::Models::Address
|
1238
|
-
has_one :contact, Base::Models::Contact
|
1239
|
-
has_one :name, String
|
1240
|
-
has_one :notes, Notes
|
1241
|
-
end
|
1242
|
-
|
1243
|
-
class Business
|
1244
|
-
include HappyMapper
|
1245
|
-
|
1246
|
-
tag "business"
|
1247
|
-
|
1248
|
-
has_one :shop, Shop
|
1249
|
-
end
|
1250
|
-
|
1251
|
-
class Membership
|
1252
|
-
include HappyMapper
|
1253
|
-
|
1254
|
-
tag "membership"
|
1255
|
-
|
1256
|
-
attribute :organisation, String
|
1257
|
-
attribute :member_id, String
|
1258
|
-
end
|
1259
|
-
|
1260
|
-
class NumberOfDives
|
1261
|
-
include HappyMapper
|
1262
|
-
|
1263
|
-
tag "numberofdives"
|
1264
|
-
|
1265
|
-
has_one :start_date, DateTime, tag: "startdate"
|
1266
|
-
has_one :end_date, DateTime, tag: "enddate"
|
1267
|
-
has_one :dives, Integer
|
1268
|
-
end
|
1269
|
-
|
1270
|
-
class Personal
|
1271
|
-
include HappyMapper
|
1272
|
-
|
1273
|
-
tag "personal"
|
1274
|
-
|
1275
|
-
has_one :birth_date, Base::Models::DateTimeField, tag: "birthdate"
|
1276
|
-
has_one :birth_name, String, tag: "birthname"
|
1277
|
-
has_one :blood_group, String, tag: "bloodgroup"
|
1278
|
-
has_one :first_name, String, tag: "firstname"
|
1279
|
-
has_one :height, Float
|
1280
|
-
has_one :honorific, String
|
1281
|
-
has_one :last_name, String, tag: "lastname"
|
1282
|
-
has_one :membership, Membership
|
1283
|
-
has_one :middle_name, String, tag: "middlename"
|
1284
|
-
has_one :number_of_dives, NumberOfDives, tag: "numberofdives"
|
1285
|
-
has_one :sex, String
|
1286
|
-
has_one :smoking, String
|
1287
|
-
has_one :weight, Float
|
1288
|
-
end
|
1289
|
-
|
1290
|
-
class Instructor
|
1291
|
-
include HappyMapper
|
1292
|
-
|
1293
|
-
tag "instructor"
|
1294
|
-
|
1295
|
-
has_one :address, Base::Models::Address
|
1296
|
-
has_one :contact, Base::Models::Contact
|
1297
|
-
has_one :personal, Personal
|
1298
|
-
end
|
1299
|
-
|
1300
|
-
class Certification
|
1301
|
-
include HappyMapper
|
1302
|
-
|
1303
|
-
tag "certification"
|
1304
|
-
|
1305
|
-
has_one :certificate_number, String, tag: "certificatenumber"
|
1306
|
-
has_one :instructor, Instructor
|
1307
|
-
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1308
|
-
has_one :level, String
|
1309
|
-
has_one :link, Link
|
1310
|
-
has_one :organization, String
|
1311
|
-
has_one :specialty, String
|
1312
|
-
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1313
|
-
end
|
1314
|
-
|
1315
|
-
class Education
|
1316
|
-
include HappyMapper
|
1317
|
-
|
1318
|
-
tag "education"
|
1319
|
-
|
1320
|
-
has_many :certifications, Certification, tag: "certification"
|
1321
|
-
end
|
1322
|
-
|
1323
|
-
class Insurance
|
1324
|
-
include HappyMapper
|
1325
|
-
|
1326
|
-
tag "insurance"
|
1327
|
-
|
1328
|
-
has_many :alias_names, String, tag: "aliasname"
|
1329
|
-
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1330
|
-
has_one :name, String
|
1331
|
-
has_one :notes, Notes
|
1332
|
-
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1333
|
-
end
|
1334
|
-
|
1335
|
-
class DiveInsurances
|
1336
|
-
include HappyMapper
|
1337
|
-
|
1338
|
-
tag "diveinsurances"
|
1339
|
-
|
1340
|
-
has_many :insurances, Insurance, tag: "insurance"
|
1341
|
-
end
|
1342
|
-
|
1343
|
-
class Permit
|
1344
|
-
include HappyMapper
|
1345
|
-
|
1346
|
-
tag "permit"
|
1347
|
-
|
1348
|
-
has_many :alias_names, String, tag: "aliasname"
|
1349
|
-
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1350
|
-
has_one :name, String
|
1351
|
-
has_one :notes, Notes
|
1352
|
-
has_one :region, String
|
1353
|
-
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1354
|
-
end
|
1355
|
-
|
1356
|
-
class DivePermissions
|
1357
|
-
include HappyMapper
|
1358
|
-
|
1359
|
-
tag "divepermissions"
|
1360
|
-
|
1361
|
-
has_many :permits, Permit, tag: "permit"
|
1362
|
-
end
|
1363
|
-
|
1364
|
-
class Purchase
|
1365
|
-
include HappyMapper
|
1366
|
-
|
1367
|
-
tag "purchase"
|
1368
|
-
|
1369
|
-
has_one :datetime, DateTime
|
1370
|
-
has_one :link, Link
|
1371
|
-
has_one :price, Price
|
1372
|
-
has_one :shop, Shop
|
1373
|
-
end
|
1374
|
-
|
1375
|
-
class TemperatureSensor
|
1376
|
-
include HappyMapper
|
1377
|
-
|
1378
|
-
tag "temperaturesensor"
|
1379
|
-
|
1380
|
-
attribute :id, String
|
1381
|
-
|
1382
|
-
has_many :alias_names, String, tag: "aliasname"
|
1383
|
-
has_one :manufacturer, Manufacturer
|
1384
|
-
has_one :model, String
|
1385
|
-
has_one :name, String
|
1386
|
-
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
1387
|
-
has_one :notes, Notes
|
1388
|
-
has_one :purchase, Purchase
|
1389
|
-
has_one :serial_number, String, tag: "serialnumber"
|
1390
|
-
has_one :service_interval, Integer, tag: "serviceinterval"
|
1391
|
-
end
|
1392
|
-
|
1393
|
-
class TimerDevice
|
1394
|
-
include HappyMapper
|
1395
|
-
|
1396
|
-
tag "timerdevice"
|
1397
|
-
|
1398
|
-
attribute :id, String
|
1399
|
-
end
|
1400
|
-
|
1401
|
-
class EquipmentPart
|
1402
|
-
include HappyMapper
|
1403
|
-
|
1404
|
-
tag "equipmentpart"
|
1405
|
-
|
1406
|
-
attribute :id, String
|
1407
|
-
has_many :alias_names, String, tag: "aliasname"
|
1408
|
-
has_many :links, Link, tag: "link"
|
1409
|
-
has_one :manufacturer, Manufacturer
|
1410
|
-
has_one :model, String
|
1411
|
-
has_one :name, String
|
1412
|
-
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
1413
|
-
has_one :notes, Notes
|
1414
|
-
has_one :purchase, Purchase
|
1415
|
-
has_one :serial_number, String, tag: "serialnumber"
|
1416
|
-
has_one :service_interval, Integer, tag: "serviceinterval"
|
1417
|
-
end
|
1418
|
-
|
1419
|
-
class Lead < EquipmentPart
|
1420
|
-
include HappyMapper
|
1421
|
-
|
1422
|
-
tag "lead"
|
1423
|
-
|
1424
|
-
has_one :lead_quantity, Integer, tag: "leadquantity"
|
1425
|
-
end
|
1426
|
-
|
1427
|
-
class Rebreather < EquipmentPart
|
1428
|
-
include HappyMapper
|
1429
|
-
|
1430
|
-
tag "rebreather"
|
1431
|
-
|
1432
|
-
has_many :batteries, Battery, tag: "battery"
|
1433
|
-
has_many :o2_sensors, EquipmentPart, tag: "o2sensor"
|
1434
|
-
has_many :scrubber_monitors, ScrubberMonitor, tag: "scrubbermonitor"
|
1435
|
-
has_many :temperature_sensors, TemperatureSensor, tag: "temperaturesensor"
|
1436
|
-
has_many :timer_devices, TimerDevice, tag: "timerdevice"
|
1437
|
-
end
|
1438
|
-
|
1439
|
-
class Suit < EquipmentPart
|
1440
|
-
include HappyMapper
|
1441
|
-
|
1442
|
-
tag "suit"
|
1443
|
-
|
1444
|
-
has_one :suit_type, String, tag: "suittype"
|
1445
|
-
end
|
1446
|
-
|
1447
|
-
class Tank < EquipmentPart
|
1448
|
-
include HappyMapper
|
1449
|
-
|
1450
|
-
tag "tank"
|
1451
|
-
|
1452
|
-
has_one :tank_material, String, tag: "tankmaterial"
|
1453
|
-
has_one :tank_volume, Float, tag: "tankvolume"
|
1454
|
-
has_many :batteries, Battery, tag: "battery"
|
1455
|
-
end
|
1456
|
-
|
1457
|
-
class Camera
|
1458
|
-
include HappyMapper
|
1459
|
-
|
1460
|
-
tag "camera"
|
1461
|
-
|
1462
|
-
has_one :body, EquipmentPart
|
1463
|
-
has_many :flashes, EquipmentPart, tag: "flash"
|
1464
|
-
has_one :housing, EquipmentPart
|
1465
|
-
has_one :lens, EquipmentPart
|
1466
|
-
end
|
1467
|
-
|
1468
|
-
class DiveComputer < EquipmentPart
|
1469
|
-
include HappyMapper
|
1470
|
-
|
1471
|
-
tag "divecomputer"
|
1472
|
-
|
1473
|
-
has_many :batteries, Battery, tag: "battery"
|
1474
|
-
has_many :timer_devices, TimerDevice, tag: "timerdevice"
|
1475
|
-
end
|
1476
|
-
|
1477
|
-
class EquipmentContent
|
1478
|
-
include HappyMapper
|
1479
|
-
|
1480
|
-
has_many :boots, EquipmentPart, tag: "boots"
|
1481
|
-
has_many :buoyancy_control_devices, EquipmentPart, tag: "buoyancycontroldevice"
|
1482
|
-
has_many :cameras, Camera, tag: "camera"
|
1483
|
-
has_many :compasses, EquipmentPart, tag: "compass"
|
1484
|
-
has_many :dive_computers, DiveComputer, tag: "divecomputer"
|
1485
|
-
has_many :fins, EquipmentPart, tag: "fins"
|
1486
|
-
has_many :gloves, EquipmentPart, tag: "gloves"
|
1487
|
-
has_many :knives, EquipmentPart, tag: "knife"
|
1488
|
-
has_many :leads, Lead, tag: "lead"
|
1489
|
-
has_many :lights, EquipmentPart, tag: "light"
|
1490
|
-
has_many :masks, EquipmentPart, tag: "mask"
|
1491
|
-
has_many :rebreathers, Rebreather, tag: "rebreather"
|
1492
|
-
has_many :regulators, EquipmentPart, tag: "regulator"
|
1493
|
-
has_many :scooters, EquipmentPart, tag: "scooter"
|
1494
|
-
has_many :suits, Suit, tag: "suit"
|
1495
|
-
has_many :tanks, Tank, tag: "tank"
|
1496
|
-
has_many :various_pieces, EquipmentPart, tag: "variouspieces"
|
1497
|
-
has_many :video_cameras, EquipmentPart, tag: "videocamera"
|
1498
|
-
has_many :watches, EquipmentPart, tag: "watch"
|
1499
|
-
end
|
1500
|
-
|
1501
|
-
class EquipmentConfiguration < EquipmentContent
|
1502
|
-
include HappyMapper
|
1503
|
-
|
1504
|
-
tag "equipmentconfiguration"
|
1505
|
-
|
1506
|
-
has_many :alias_names, String, tag: "aliasname"
|
1507
|
-
has_many :links, Link, tag: "link"
|
1508
|
-
has_one :name, String
|
1509
|
-
has_one :notes, Notes
|
1510
|
-
end
|
1511
|
-
|
1512
|
-
class Equipment < EquipmentContent
|
1513
|
-
include HappyMapper
|
1514
|
-
|
1515
|
-
tag "equipment"
|
714
|
+
tag "equipment"
|
1516
715
|
|
1517
716
|
has_many :compressors, EquipmentPart, tag: "compressor"
|
1518
717
|
has_one :equipment_configuration, EquipmentConfiguration, tag: "equipmentconfiguration"
|
1519
718
|
end
|
1520
719
|
|
1521
|
-
class Doctor
|
1522
|
-
include HappyMapper
|
1523
|
-
|
1524
|
-
tag "doctor"
|
1525
|
-
|
1526
|
-
attribute :id, String
|
1527
|
-
has_one :address, Base::Models::Address
|
1528
|
-
has_one :contact, Base::Models::Contact
|
1529
|
-
has_one :personal, Personal
|
1530
|
-
end
|
1531
|
-
|
1532
|
-
class Examination
|
1533
|
-
include HappyMapper
|
1534
|
-
|
1535
|
-
tag "examination"
|
1536
|
-
|
1537
|
-
has_one :datetime, DateTime
|
1538
|
-
has_one :doctor, Doctor
|
1539
|
-
has_one :examination_result, String, tag: "examinationresult"
|
1540
|
-
has_many :links, Link, tag: "link"
|
1541
|
-
has_one :notes, Notes
|
1542
|
-
has_one :total_lung_capacity, Float, tag: "totallungcapacity"
|
1543
|
-
has_one :vital_capacity, Float, tag: "vitalcapacity"
|
1544
|
-
end
|
1545
|
-
|
1546
|
-
class Medical
|
1547
|
-
include HappyMapper
|
1548
|
-
|
1549
|
-
tag "medical"
|
1550
|
-
|
1551
|
-
has_one :examination, Examination
|
1552
|
-
end
|
1553
|
-
|
1554
720
|
class BuddyOwnerShared
|
1555
721
|
include HappyMapper
|
1556
722
|
|
1557
723
|
attribute :id, String
|
1558
724
|
has_one :address, Base::Models::Address
|
1559
725
|
has_one :contact, Base::Models::Contact
|
1560
|
-
has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
|
1561
|
-
has_one :dive_permissions, DivePermissions, tag: "divepermissions"
|
726
|
+
has_one :dive_insurances, Base::Models::DiveInsurances, tag: "diveinsurances"
|
727
|
+
has_one :dive_permissions, Base::Models::DivePermissions, tag: "divepermissions"
|
1562
728
|
has_one :equipment, Equipment
|
1563
|
-
has_one :medical, Medical
|
1564
|
-
has_one :notes, Notes
|
1565
|
-
has_one :personal, Personal
|
729
|
+
has_one :medical, Base::Models::Medical
|
730
|
+
has_one :notes, Base::Models::Notes
|
731
|
+
has_one :personal, Base::Models::Personal
|
1566
732
|
end
|
1567
733
|
|
1568
734
|
class Buddy < BuddyOwnerShared
|
@@ -1571,7 +737,7 @@ module UDDF
|
|
1571
737
|
tag "buddy"
|
1572
738
|
|
1573
739
|
attribute :id, String
|
1574
|
-
has_one :certification,
|
740
|
+
has_one :certification, Base::Models::CertificationV322
|
1575
741
|
has_one :student, String
|
1576
742
|
end
|
1577
743
|
|
@@ -1581,7 +747,7 @@ module UDDF
|
|
1581
747
|
tag "owner"
|
1582
748
|
|
1583
749
|
attribute :id, String
|
1584
|
-
has_one :education,
|
750
|
+
has_one :education, Base::Models::EducationV322
|
1585
751
|
end
|
1586
752
|
|
1587
753
|
class Diver
|
@@ -1593,133 +759,6 @@ module UDDF
|
|
1593
759
|
has_one :owner, Owner
|
1594
760
|
end
|
1595
761
|
|
1596
|
-
class DCAlarm
|
1597
|
-
include HappyMapper
|
1598
|
-
|
1599
|
-
tag "dcalarm"
|
1600
|
-
|
1601
|
-
has_one :acknowledge, String
|
1602
|
-
has_one :alarm_type, Integer, tag: "alarmtype"
|
1603
|
-
has_one :period, Float
|
1604
|
-
end
|
1605
|
-
|
1606
|
-
class SetDCDiveDepthAlarm
|
1607
|
-
include HappyMapper
|
1608
|
-
|
1609
|
-
tag "setdcdivedethalarm"
|
1610
|
-
|
1611
|
-
has_one :dc_alarm, DCAlarm
|
1612
|
-
has_one :dc_alarm_depth, Float
|
1613
|
-
end
|
1614
|
-
|
1615
|
-
class SetDCDivePo2Alarm
|
1616
|
-
include HappyMapper
|
1617
|
-
|
1618
|
-
tag "setdcdivepo2alarm"
|
1619
|
-
|
1620
|
-
has_one :dc_alarm, DCAlarm
|
1621
|
-
has_one :maximum_po2, Float
|
1622
|
-
end
|
1623
|
-
|
1624
|
-
class SetDCDiveSiteData
|
1625
|
-
include HappyMapper
|
1626
|
-
|
1627
|
-
tag "setdcdivesitedata"
|
1628
|
-
|
1629
|
-
attribute :dive_site, String
|
1630
|
-
end
|
1631
|
-
|
1632
|
-
class SetDCDiveTimeAlarm
|
1633
|
-
include HappyMapper
|
1634
|
-
|
1635
|
-
tag "setdcdivetimealarm"
|
1636
|
-
|
1637
|
-
has_one :dc_alarm, DCAlarm
|
1638
|
-
has_one :timespan, Float
|
1639
|
-
end
|
1640
|
-
|
1641
|
-
class SetDCEndNDTAlarm
|
1642
|
-
include HappyMapper
|
1643
|
-
|
1644
|
-
tag "setdcendndtalarm"
|
1645
|
-
|
1646
|
-
has_one :dc_alarm, DCAlarm
|
1647
|
-
end
|
1648
|
-
|
1649
|
-
class SetDCDecoModel
|
1650
|
-
include HappyMapper
|
1651
|
-
|
1652
|
-
tag "setdcdecomodel"
|
1653
|
-
|
1654
|
-
has_many :alias_names, String, tag: "aliasname"
|
1655
|
-
has_one :application_data, ApplicationData
|
1656
|
-
has_one :name, String
|
1657
|
-
end
|
1658
|
-
|
1659
|
-
class SetDCBuddyData
|
1660
|
-
include HappyMapper
|
1661
|
-
|
1662
|
-
tag "setdcbuddydata"
|
1663
|
-
|
1664
|
-
attribute :buddy, String
|
1665
|
-
end
|
1666
|
-
|
1667
|
-
class SetDCData
|
1668
|
-
include HappyMapper
|
1669
|
-
|
1670
|
-
tag "setdcdata"
|
1671
|
-
|
1672
|
-
has_one :set_dc_alarm_time, DateTime
|
1673
|
-
has_one :set_dc_altitude, Float
|
1674
|
-
has_one :set_dc_buddy_data, SetDCBuddyData
|
1675
|
-
has_one :set_dc_date_time, DateTime
|
1676
|
-
has_one :set_dc_deco_model, SetDCDecoModel
|
1677
|
-
has_one :set_dc_dive_depth_alarm, SetDCDiveDepthAlarm
|
1678
|
-
has_one :set_dc_dive_po2_alarm, SetDCDivePo2Alarm
|
1679
|
-
has_many :set_dc_dive_site_data, SetDCDiveSiteData, tag: "setdcdivesitedata"
|
1680
|
-
has_one :set_dc_dive_time_alarm, SetDCDiveTimeAlarm
|
1681
|
-
has_one :set_dc_end_ndt_alarm, SetDCEndNDTAlarm
|
1682
|
-
has_one :set_dc_gas_definitions_data, String
|
1683
|
-
has_one :set_dc_owner_data, String
|
1684
|
-
has_one :set_dc_password, String
|
1685
|
-
has_one :set_dc_generator_data, String
|
1686
|
-
end
|
1687
|
-
|
1688
|
-
class GetDCData
|
1689
|
-
include HappyMapper
|
1690
|
-
|
1691
|
-
tag "getdcdata"
|
1692
|
-
|
1693
|
-
has_one :get_dc_all_data, String
|
1694
|
-
has_one :get_dc_generator_data, String
|
1695
|
-
has_one :get_dc_owner_data, String
|
1696
|
-
has_one :get_dc_buddy_data, String
|
1697
|
-
has_one :get_dc_gas_definitions_data, String
|
1698
|
-
has_one :get_dc_dive_site_data, String
|
1699
|
-
has_one :get_dc_dive_trip_data, String
|
1700
|
-
has_one :get_dc_profile_data, String
|
1701
|
-
end
|
1702
|
-
|
1703
|
-
class DiveComputerDump
|
1704
|
-
include HappyMapper
|
1705
|
-
|
1706
|
-
tag "divecomputerdump"
|
1707
|
-
|
1708
|
-
has_one :datetime, DateTime
|
1709
|
-
has_one :dc_dump, String
|
1710
|
-
has_one :link, Link
|
1711
|
-
end
|
1712
|
-
|
1713
|
-
class DiveComputerControl
|
1714
|
-
include HappyMapper
|
1715
|
-
|
1716
|
-
tag "divecomputercontrol"
|
1717
|
-
|
1718
|
-
has_many :dive_computer_dumps, DiveComputerDump, tag: "divecomputerdump"
|
1719
|
-
has_one :get_dc_data, GetDCData, tag: "getdcdata"
|
1720
|
-
has_one :set_dc_data, SetDCData, tag: "setdcdata"
|
1721
|
-
end
|
1722
|
-
|
1723
762
|
class Uddf
|
1724
763
|
include HappyMapper
|
1725
764
|
|
@@ -1727,15 +766,15 @@ module UDDF
|
|
1727
766
|
|
1728
767
|
attribute :version, String
|
1729
768
|
has_one :business, Business
|
1730
|
-
has_one :deco_model,
|
1731
|
-
has_one :dive_computer_control,
|
769
|
+
has_one :deco_model, Base::Models::DecoModelV320, tag: "decomodel"
|
770
|
+
has_one :dive_computer_control, Base::Models::DiveComputerControlV330, tag: "divecomputercontrol"
|
1732
771
|
has_one :diver, Diver
|
1733
|
-
has_one :dive_site, DiveSite, tag: "divesite"
|
1734
|
-
has_one :dive_trip, DiveTrip, tag: "divetrip"
|
1735
|
-
has_one :gas_definitions, GasDefinitions, tag: "gasdefinitions"
|
1736
|
-
has_one :generator, Generator
|
772
|
+
has_one :dive_site, Base::Models::DiveSite, tag: "divesite"
|
773
|
+
has_one :dive_trip, Base::Models::DiveTrip, tag: "divetrip"
|
774
|
+
has_one :gas_definitions, Base::Models::GasDefinitions, tag: "gasdefinitions"
|
775
|
+
has_one :generator, Base::Models::Generator
|
1737
776
|
has_one :maker, Maker
|
1738
|
-
has_one :media_data, MediaData, tag: "mediadata"
|
777
|
+
has_one :media_data, Base::Models::MediaData, tag: "mediadata"
|
1739
778
|
has_one :profile_data, ProfileData, tag: "profiledata"
|
1740
779
|
has_one :table_generation, TableGeneration, tag: "tablegeneration"
|
1741
780
|
end
|