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/v323/models.rb
CHANGED
@@ -6,140 +6,6 @@ require "uddf/base/models"
|
|
6
6
|
module UDDF
|
7
7
|
module V323
|
8
8
|
module Models
|
9
|
-
class Manufacturer
|
10
|
-
include HappyMapper
|
11
|
-
|
12
|
-
tag "manufacturer"
|
13
|
-
|
14
|
-
attribute :id, String
|
15
|
-
has_one :address, Base::Models::Address
|
16
|
-
has_many :alias_names, String, tag: "aliasname"
|
17
|
-
has_one :contact, Base::Models::Contact
|
18
|
-
has_one :name, String
|
19
|
-
end
|
20
|
-
|
21
|
-
class Link
|
22
|
-
include HappyMapper
|
23
|
-
|
24
|
-
tag "link"
|
25
|
-
|
26
|
-
attribute :ref, String
|
27
|
-
end
|
28
|
-
|
29
|
-
class Generator
|
30
|
-
include HappyMapper
|
31
|
-
|
32
|
-
tag "generator"
|
33
|
-
|
34
|
-
has_many :alias_names, String, tag: "aliasname"
|
35
|
-
has_one :datetime, DateTime
|
36
|
-
has_many :links, Link, tag: "link"
|
37
|
-
has_one :name, String
|
38
|
-
has_one :type, String
|
39
|
-
has_one :version, String
|
40
|
-
end
|
41
|
-
|
42
|
-
class Notes
|
43
|
-
include HappyMapper
|
44
|
-
|
45
|
-
tag "notes"
|
46
|
-
|
47
|
-
has_many :paras, String, tag: "para"
|
48
|
-
has_many :links, Link, tag: "link"
|
49
|
-
end
|
50
|
-
|
51
|
-
class Price
|
52
|
-
include HappyMapper
|
53
|
-
|
54
|
-
tag "price"
|
55
|
-
|
56
|
-
attribute :currency, String
|
57
|
-
content :value, Float
|
58
|
-
end
|
59
|
-
|
60
|
-
class Tissue
|
61
|
-
include HappyMapper
|
62
|
-
|
63
|
-
tag "tissue"
|
64
|
-
|
65
|
-
attribute :gas, String
|
66
|
-
attribute :half_life, Float, tag: "halflife"
|
67
|
-
attribute :number, Integer
|
68
|
-
attribute :a, Float
|
69
|
-
attribute :b, Float
|
70
|
-
end
|
71
|
-
|
72
|
-
class VPM
|
73
|
-
include HappyMapper
|
74
|
-
|
75
|
-
tag "vpm"
|
76
|
-
|
77
|
-
attribute :id, String
|
78
|
-
has_one :conservatism, Float
|
79
|
-
has_one :gamma, Float
|
80
|
-
has_one :gc, Float
|
81
|
-
has_one :lambda, Float
|
82
|
-
has_one :r0, Float
|
83
|
-
has_many :tissues, Tissue, tag: "tissue"
|
84
|
-
end
|
85
|
-
|
86
|
-
class RGBM
|
87
|
-
include HappyMapper
|
88
|
-
|
89
|
-
tag "rgbm"
|
90
|
-
|
91
|
-
attribute :id, String
|
92
|
-
has_many :tissues, Tissue, tag: "tissue"
|
93
|
-
end
|
94
|
-
|
95
|
-
class Buehlmann
|
96
|
-
include HappyMapper
|
97
|
-
|
98
|
-
tag "buehlmann"
|
99
|
-
|
100
|
-
attribute :id, String
|
101
|
-
has_one :gradient_factor_high, Float, tag: "gradientfactorhigh"
|
102
|
-
has_one :gradient_factor_low, Float, tag: "gradientfactorlow"
|
103
|
-
has_many :tissues, Tissue, tag: "tissue"
|
104
|
-
end
|
105
|
-
|
106
|
-
class DecoModel
|
107
|
-
include HappyMapper
|
108
|
-
|
109
|
-
tag "decomodel"
|
110
|
-
|
111
|
-
has_many :buehlmanns, Buehlmann, tag: "buehlmann"
|
112
|
-
has_many :rgbms, RGBM, tag: "rbgm"
|
113
|
-
has_many :vpms, VPM, tag: "vpm"
|
114
|
-
end
|
115
|
-
|
116
|
-
class Mix
|
117
|
-
include HappyMapper
|
118
|
-
|
119
|
-
tag "mix"
|
120
|
-
|
121
|
-
attribute :id, String
|
122
|
-
has_many :alias_names, String, tag: "aliasname"
|
123
|
-
has_one :ar, Float
|
124
|
-
has_one :equivalent_air_depth, Float, tag: "equivalentairdepth"
|
125
|
-
has_one :h2, Float
|
126
|
-
has_one :he, Float
|
127
|
-
has_one :maximum_operation_depth, Float, tag: "maximumoperationdepth"
|
128
|
-
has_one :maximum_po2, Float, tag: "maximumpo2"
|
129
|
-
has_one :n2, Float
|
130
|
-
has_one :name, String
|
131
|
-
has_one :o2, Float
|
132
|
-
has_one :price_per_litre, Price, tag: "priceperlitre"
|
133
|
-
end
|
134
|
-
|
135
|
-
class GasDefinitions
|
136
|
-
include HappyMapper
|
137
|
-
|
138
|
-
tag "gasdefinitions"
|
139
|
-
|
140
|
-
has_many :mixes, Mix, tag: "mix"
|
141
|
-
end
|
142
|
-
|
143
9
|
class WayAltitude
|
144
10
|
include HappyMapper
|
145
11
|
|
@@ -280,6 +146,7 @@ module UDDF
|
|
280
146
|
has_one :dive_time, Float, tag: "divetime"
|
281
147
|
has_one :gradient_factor, GradientFactor, tag: "gradientfactor"
|
282
148
|
has_one :heading, Float
|
149
|
+
has_one :heart_rate, Float, tag: "heartrate"
|
283
150
|
has_many :measured_po2s, MeasuredPo2, tag: "measuredpo2"
|
284
151
|
has_one :no_deco_time, Float, tag: "nodecotime"
|
285
152
|
has_one :otu, Float
|
@@ -289,26 +156,10 @@ module UDDF
|
|
289
156
|
has_one :switch_mix, SwitchMix, tag: "switchmix"
|
290
157
|
has_many :tank_pressures, TankPressure, tag: "tankpressure"
|
291
158
|
has_one :temperature, Float
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
tag "medicine"
|
298
|
-
|
299
|
-
has_many :alias_names, String, tag: "aliasname"
|
300
|
-
has_one :name, String
|
301
|
-
has_one :notes, Notes
|
302
|
-
has_one :periodically_taken, String, tag: "periodicallytaken"
|
303
|
-
has_one :timespan_before_dive, Float, tag: "timespanbeforedive"
|
304
|
-
end
|
305
|
-
|
306
|
-
class MedicationBeforeDive
|
307
|
-
include HappyMapper
|
308
|
-
|
309
|
-
tag "medicationbeforedive"
|
310
|
-
|
311
|
-
has_many :medicines, Medicine, tag: "medicine"
|
159
|
+
# Added in v3.2.2
|
160
|
+
has_one :body_temperature, Float, tag: "bodytemperature"
|
161
|
+
has_one :pulse_rate, Float, tag: "pulserate"
|
162
|
+
has_many :set_markers, String, tag: "setmarker"
|
312
163
|
end
|
313
164
|
|
314
165
|
class PlannedProfile
|
@@ -321,45 +172,25 @@ module UDDF
|
|
321
172
|
has_many :waypoints, Waypoint, tag: "waypoint"
|
322
173
|
end
|
323
174
|
|
324
|
-
class Drink
|
325
|
-
include HappyMapper
|
326
|
-
|
327
|
-
tag "drink"
|
328
|
-
|
329
|
-
has_many :alias_names, String, tag: "aliasname"
|
330
|
-
has_one :name, String
|
331
|
-
has_one :notes, Notes
|
332
|
-
has_one :periodically_taken, String, tag: "periodicallytaken"
|
333
|
-
has_one :timespan_before_dive, Float, tag: "timespanbeforedive"
|
334
|
-
end
|
335
|
-
|
336
|
-
class AlcoholBeforeDive
|
337
|
-
include HappyMapper
|
338
|
-
|
339
|
-
tag "alcoholbeforedive"
|
340
|
-
|
341
|
-
has_many :drinks, Drink, tag: "drink"
|
342
|
-
end
|
343
|
-
|
344
175
|
class InformationBeforeDive
|
345
176
|
include HappyMapper
|
346
177
|
|
347
178
|
tag "informationbeforedive"
|
348
179
|
|
349
180
|
has_one :air_temperature, Float, tag: "airtemperature"
|
350
|
-
has_one :alcohol_before_dive, AlcoholBeforeDive, tag: "alcoholbeforedive"
|
181
|
+
has_one :alcohol_before_dive, Base::Models::AlcoholBeforeDive, tag: "alcoholbeforedive"
|
351
182
|
has_one :altitude, Float
|
352
183
|
has_one :apparatus, String
|
353
184
|
has_one :datetime, DateTime
|
354
185
|
has_one :dive_number, Integer, tag: "divenumber"
|
355
186
|
has_one :dive_number_of_day, Integer, tag: "divenumberofday"
|
356
187
|
has_one :internal_dive_number, Integer, tag: "internaldivenumber"
|
357
|
-
has_many :links, Link, tag: "link"
|
358
|
-
has_one :medication_before_dive, MedicationBeforeDive, tag: "medicationbeforedive"
|
188
|
+
has_many :links, Base::Models::Link, tag: "link"
|
189
|
+
has_one :medication_before_dive, Base::Models::MedicationBeforeDive, tag: "medicationbeforedive"
|
359
190
|
has_one :no_suit, String, tag: "nosuit"
|
360
191
|
has_one :planned_profile, PlannedProfile, tag: "plannedprofile"
|
361
192
|
has_one :platform, String
|
362
|
-
has_one :price, Price
|
193
|
+
has_one :price, Base::Models::Price
|
363
194
|
has_one :purpose, String
|
364
195
|
has_one :state_of_rest_before_dive, String, tag: "stateofrestbeforedive"
|
365
196
|
has_one :surface_interval_before_dive, SurfaceIntervalBeforeDive, tag: "surfaceintervalbeforedive"
|
@@ -367,15 +198,6 @@ module UDDF
|
|
367
198
|
has_one :trip_membership, String, tag: "tripmembership"
|
368
199
|
end
|
369
200
|
|
370
|
-
class Rating
|
371
|
-
include HappyMapper
|
372
|
-
|
373
|
-
tag "rating"
|
374
|
-
|
375
|
-
has_one :datetime, DateTime
|
376
|
-
has_one :rating_value, Integer, tag: "ratingvalue"
|
377
|
-
end
|
378
|
-
|
379
201
|
class GlobalAlarmsGiven
|
380
202
|
include HappyMapper
|
381
203
|
|
@@ -390,113 +212,7 @@ module UDDF
|
|
390
212
|
tag "equipmentused"
|
391
213
|
|
392
214
|
has_one :lead_quantity, Float, tag: "leadquantity"
|
393
|
-
has_many :links, Link, tag: "link"
|
394
|
-
end
|
395
|
-
|
396
|
-
class AnySymptoms
|
397
|
-
include HappyMapper
|
398
|
-
|
399
|
-
tag "anysymptoms"
|
400
|
-
|
401
|
-
has_one :notes, Notes
|
402
|
-
end
|
403
|
-
|
404
|
-
class Abundance
|
405
|
-
include HappyMapper
|
406
|
-
|
407
|
-
tag "abundance"
|
408
|
-
|
409
|
-
attribute :quality, String
|
410
|
-
attribute :occurrence, String
|
411
|
-
content :value, Integer
|
412
|
-
end
|
413
|
-
|
414
|
-
class Species
|
415
|
-
include HappyMapper
|
416
|
-
|
417
|
-
tag "species"
|
418
|
-
|
419
|
-
attribute :id, String
|
420
|
-
has_one :abundance, Abundance
|
421
|
-
has_one :age, Integer
|
422
|
-
has_one :dominance, String
|
423
|
-
has_one :life_stage, String, tag: "lifestage"
|
424
|
-
has_one :notes, Notes
|
425
|
-
has_one :scientific_name, String, tag: "scientificname"
|
426
|
-
has_one :sex, String
|
427
|
-
has_one :size, Float
|
428
|
-
has_one :trivial_name, String, tag: "trivialname"
|
429
|
-
end
|
430
|
-
|
431
|
-
class WithSpecies
|
432
|
-
include HappyMapper
|
433
|
-
|
434
|
-
has_many :species, Species, tag: "species"
|
435
|
-
end
|
436
|
-
|
437
|
-
class Invertebrata
|
438
|
-
include HappyMapper
|
439
|
-
|
440
|
-
tag "invertebrata"
|
441
|
-
|
442
|
-
has_one :ascidiacea, WithSpecies
|
443
|
-
has_one :bryozoan, WithSpecies
|
444
|
-
has_one :cnidaria, WithSpecies
|
445
|
-
has_one :coelenterata, WithSpecies
|
446
|
-
has_one :crustacea, WithSpecies
|
447
|
-
has_one :ctenophora, WithSpecies
|
448
|
-
has_one :echinodermata, WithSpecies
|
449
|
-
has_one :invertebrata_various, WithSpecies, tag: "invertebratavarious"
|
450
|
-
has_one :mollusca, WithSpecies
|
451
|
-
has_one :phoronidea, WithSpecies
|
452
|
-
has_one :plathelminthes, WithSpecies
|
453
|
-
has_one :porifera, WithSpecies
|
454
|
-
end
|
455
|
-
|
456
|
-
class Vertebrata
|
457
|
-
include HappyMapper
|
458
|
-
|
459
|
-
tag "vertebrata"
|
460
|
-
|
461
|
-
has_one :amphibia, WithSpecies
|
462
|
-
has_one :chondrichthyes, WithSpecies
|
463
|
-
has_one :mammalia, WithSpecies
|
464
|
-
has_one :osteichthyes, WithSpecies
|
465
|
-
has_one :reptilia, WithSpecies
|
466
|
-
has_one :vertebrata_various, WithSpecies, tag: "vertebratavarious"
|
467
|
-
end
|
468
|
-
|
469
|
-
class Fauna
|
470
|
-
include HappyMapper
|
471
|
-
|
472
|
-
tag "fauna"
|
473
|
-
|
474
|
-
has_one :invertebrata, Invertebrata
|
475
|
-
has_one :notes, Notes
|
476
|
-
has_one :vertebrata, Vertebrata
|
477
|
-
end
|
478
|
-
|
479
|
-
class Flora
|
480
|
-
include HappyMapper
|
481
|
-
|
482
|
-
tag "flora"
|
483
|
-
|
484
|
-
has_one :chlorophyceae, WithSpecies
|
485
|
-
has_one :flora_various, WithSpecies, tag: "floravarious"
|
486
|
-
has_one :notes, Notes
|
487
|
-
has_one :phaeophyceae, WithSpecies
|
488
|
-
has_one :rhodophyceae, WithSpecies
|
489
|
-
has_one :spermatophyta, WithSpecies
|
490
|
-
end
|
491
|
-
|
492
|
-
class Observations
|
493
|
-
include HappyMapper
|
494
|
-
|
495
|
-
tag "observations"
|
496
|
-
|
497
|
-
has_one :fauna, Fauna
|
498
|
-
has_one :flora, Flora
|
499
|
-
has_one :notes, Notes
|
215
|
+
has_many :links, Base::Models::Link, tag: "link"
|
500
216
|
end
|
501
217
|
|
502
218
|
class InformationAfterDive
|
@@ -504,7 +220,7 @@ module UDDF
|
|
504
220
|
|
505
221
|
tag "informationafterdive"
|
506
222
|
|
507
|
-
has_one :any_symptoms, AnySymptoms, tag: "anysymptoms"
|
223
|
+
has_one :any_symptoms, Base::Models::AnySymptoms, tag: "anysymptoms"
|
508
224
|
has_one :average_depth, Float, tag: "averagedepth"
|
509
225
|
has_one :current, String
|
510
226
|
has_one :desaturation_time, Float, tag: "desaturationtime"
|
@@ -518,12 +234,12 @@ module UDDF
|
|
518
234
|
has_one :highest_po2, Float, tag: "highestpo2"
|
519
235
|
has_one :lowest_temperature, Float, tag: "lowesttemperature"
|
520
236
|
has_one :no_flight_time, Float, tag: "noflighttime"
|
521
|
-
has_one :notes, Notes
|
522
|
-
has_one :observations, Observations
|
237
|
+
has_one :notes, Base::Models::Notes
|
238
|
+
has_one :observations, Base::Models::Observations
|
523
239
|
has_one :pressure_drop, Float, tag: "pressuredrop"
|
524
240
|
has_many :problems, String, tag: "problems"
|
525
241
|
has_one :program, String
|
526
|
-
has_many :ratings, Rating, tag: "rating"
|
242
|
+
has_many :ratings, Base::Models::Rating, tag: "rating"
|
527
243
|
has_one :surface_interval_after_dive, SurfaceIntervalAfterDive, tag: "surfaceintervalafterdive"
|
528
244
|
has_one :thermal_comfort, String, tag: "thermalcomfort"
|
529
245
|
has_one :visibility, Float
|
@@ -545,33 +261,12 @@ module UDDF
|
|
545
261
|
|
546
262
|
attribute :id, String
|
547
263
|
has_one :breathing_consumption_volume, Float, tag: "breathingconsumptionvolume"
|
548
|
-
has_many :links, Link, tag: "link"
|
264
|
+
has_many :links, Base::Models::Link, tag: "link"
|
549
265
|
has_one :tank_pressure_begin, Float, tag: "tankpressurebegin"
|
550
266
|
has_one :tank_pressure_end, Float, tag: "tankpressureend"
|
551
267
|
has_one :tank_volume, Float, tag: "tankvolume"
|
552
268
|
end
|
553
269
|
|
554
|
-
class Hargikas
|
555
|
-
include HappyMapper
|
556
|
-
|
557
|
-
tag "hargikas"
|
558
|
-
|
559
|
-
has_one :ambient, Float
|
560
|
-
has_many :tissues, Tissue, tag: "tissue"
|
561
|
-
has_one :arterial_micro_bubble_level, Integer, tag: "arterialmicrobubbleLevel"
|
562
|
-
has_one :intrapulmonary_right_left_shunt, Float, tag: "intrapulmonaryrightleftshunt"
|
563
|
-
has_one :estimated_skin_cool_level, Integer, tag: "estimatedskincoolLevel"
|
564
|
-
end
|
565
|
-
|
566
|
-
class ApplicationData
|
567
|
-
include HappyMapper
|
568
|
-
|
569
|
-
tag "applicationdata"
|
570
|
-
|
571
|
-
has_one :deco_trainer, String, tag: "decotrainer"
|
572
|
-
has_one :hargikas, Hargikas
|
573
|
-
end
|
574
|
-
|
575
270
|
class Dive
|
576
271
|
include HappyMapper
|
577
272
|
|
@@ -580,7 +275,7 @@ module UDDF
|
|
580
275
|
attribute :id, String
|
581
276
|
has_one :information_after_dive, InformationAfterDive, tag: "informationafterdive"
|
582
277
|
has_one :information_before_dive, InformationBeforeDive, tag: "informationbeforedive"
|
583
|
-
has_one :application_data,
|
278
|
+
has_one :application_data, Base::Models::ApplicationDataV310, tag: "applicationdata"
|
584
279
|
has_one :samples, Samples
|
585
280
|
has_many :tank_data, TankData, tag: "tankdata"
|
586
281
|
end
|
@@ -632,7 +327,7 @@ module UDDF
|
|
632
327
|
|
633
328
|
tag "inputprofile"
|
634
329
|
|
635
|
-
has_many :links, Link, tag: "link"
|
330
|
+
has_many :links, Base::Models::Link, tag: "link"
|
636
331
|
has_many :waypoints, Waypoint, tag: "waypoint"
|
637
332
|
end
|
638
333
|
|
@@ -653,12 +348,12 @@ module UDDF
|
|
653
348
|
|
654
349
|
tag "profile"
|
655
350
|
|
656
|
-
has_one :application_data,
|
657
|
-
has_one :deco_model,
|
351
|
+
has_one :application_data, Base::Models::ApplicationDataV310, tag: "applicationdata"
|
352
|
+
has_one :deco_model, Base::Models::DecoModelV320, tag: "decomodel"
|
658
353
|
has_one :deep_stop_time, Float, tag: "deepstoptime"
|
659
354
|
has_one :density, Float
|
660
355
|
has_one :input_profile, InputProfile, tag: "inputprofile"
|
661
|
-
has_many :links, Link, tag: "link"
|
356
|
+
has_many :links, Base::Models::Link, tag: "link"
|
662
357
|
has_one :maximum_ascending_rate, Float, tag: "maximumascendingrate"
|
663
358
|
has_one :mix_change, MixChange, tag: "mixchange"
|
664
359
|
has_one :output, Output
|
@@ -729,9 +424,9 @@ module UDDF
|
|
729
424
|
tag "bottomtimetable"
|
730
425
|
|
731
426
|
attribute :id, String
|
732
|
-
has_one :application_data,
|
427
|
+
has_one :application_data, Base::Models::ApplicationDataV310, tag: "applicationdata"
|
733
428
|
has_one :bottom_time_table_scope, BottomTimeTableScope, tag: "bottomtimetablescope"
|
734
|
-
has_many :links, Link, tag: "link"
|
429
|
+
has_many :links, Base::Models::Link, tag: "link"
|
735
430
|
has_one :output, Output
|
736
431
|
has_one :title, String
|
737
432
|
end
|
@@ -754,839 +449,170 @@ module UDDF
|
|
754
449
|
has_one :calculate_table, CalculateTable, tag: "calculatetable"
|
755
450
|
end
|
756
451
|
|
757
|
-
class
|
758
|
-
include HappyMapper
|
759
|
-
|
760
|
-
tag "imagedata"
|
761
|
-
|
762
|
-
has_one :aperture, Float
|
763
|
-
has_one :datetime, DateTime
|
764
|
-
has_one :exposure_compensation, Float, tag: "exposurecompensation"
|
765
|
-
has_one :film_speed, Integer, tag: "filmspeed"
|
766
|
-
has_one :focal_length, Float, tag: "focallength"
|
767
|
-
has_one :focusing_distance, Float, tag: "focusingdistance"
|
768
|
-
has_one :metering_method, String, tag: "meteringmethod"
|
769
|
-
has_one :shutter_speed, Float, tag: "shutterspeed"
|
770
|
-
end
|
771
|
-
|
772
|
-
class Image
|
452
|
+
class Maker
|
773
453
|
include HappyMapper
|
774
454
|
|
775
|
-
tag "
|
455
|
+
tag "maker"
|
776
456
|
|
777
|
-
|
778
|
-
attribute :height, Integer
|
779
|
-
attribute :width, Integer
|
780
|
-
attribute :format, String
|
781
|
-
has_one :image_data, ImageData, tag: "imagedata"
|
782
|
-
has_one :object_name, String, tag: "objectname"
|
783
|
-
has_one :title, String
|
457
|
+
has_many :manufacturers, Base::Models::Manufacturer, tag: "manufacturer"
|
784
458
|
end
|
785
459
|
|
786
|
-
class
|
460
|
+
class Business
|
787
461
|
include HappyMapper
|
788
462
|
|
789
|
-
tag "
|
463
|
+
tag "business"
|
790
464
|
|
791
|
-
|
792
|
-
has_one :object_name, String, tag: "objectname"
|
793
|
-
has_one :title, String
|
465
|
+
has_one :shop, Base::Models::Shop
|
794
466
|
end
|
795
467
|
|
796
|
-
class
|
468
|
+
class EquipmentPart
|
797
469
|
include HappyMapper
|
798
470
|
|
799
|
-
tag "
|
471
|
+
tag "equipmentpart"
|
800
472
|
|
801
473
|
attribute :id, String
|
802
|
-
|
803
|
-
|
474
|
+
has_many :alias_names, String, tag: "aliasname"
|
475
|
+
has_many :links, Base::Models::Link, tag: "link"
|
476
|
+
has_one :manufacturer, Base::Models::Manufacturer
|
477
|
+
has_one :model, String
|
478
|
+
has_one :name, String
|
479
|
+
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
480
|
+
has_one :notes, Base::Models::Notes
|
481
|
+
has_one :purchase, Base::Models::Purchase
|
482
|
+
has_one :serial_number, String, tag: "serialnumber"
|
483
|
+
has_one :service_interval, Integer, tag: "serviceinterval"
|
804
484
|
end
|
805
485
|
|
806
|
-
class
|
486
|
+
class Lead < EquipmentPart
|
807
487
|
include HappyMapper
|
808
488
|
|
809
|
-
tag "
|
489
|
+
tag "lead"
|
810
490
|
|
811
|
-
|
812
|
-
has_many :image_files, Image, tag: "image"
|
813
|
-
has_many :video_files, Video, tag: "video"
|
491
|
+
has_one :lead_quantity, Integer, tag: "leadquantity"
|
814
492
|
end
|
815
493
|
|
816
|
-
class
|
494
|
+
class Rebreather < EquipmentPart
|
817
495
|
include HappyMapper
|
818
496
|
|
819
|
-
tag "
|
497
|
+
tag "rebreather"
|
820
498
|
|
821
|
-
has_many :
|
499
|
+
has_many :o2_sensors, EquipmentPart, tag: "o2sensor"
|
822
500
|
end
|
823
501
|
|
824
|
-
class
|
502
|
+
class Suit < EquipmentPart
|
825
503
|
include HappyMapper
|
826
504
|
|
827
|
-
tag "
|
505
|
+
tag "suit"
|
828
506
|
|
829
|
-
|
830
|
-
attribute :no_of_dives, Integer, tag: "noofdives"
|
831
|
-
content :value, Float
|
507
|
+
has_one :suit_type, String, tag: "suittype"
|
832
508
|
end
|
833
509
|
|
834
|
-
class
|
510
|
+
class Tank < EquipmentPart
|
835
511
|
include HappyMapper
|
836
512
|
|
837
|
-
tag "
|
513
|
+
tag "tank"
|
838
514
|
|
839
|
-
|
515
|
+
has_one :tank_material, String, tag: "tankmaterial"
|
516
|
+
has_one :tank_volume, Float, tag: "tankvolume"
|
840
517
|
end
|
841
518
|
|
842
|
-
class
|
519
|
+
class Camera
|
843
520
|
include HappyMapper
|
844
521
|
|
845
|
-
tag "
|
522
|
+
tag "camera"
|
846
523
|
|
847
|
-
has_one :
|
848
|
-
|
849
|
-
has_one :
|
850
|
-
has_one :
|
851
|
-
has_one :tonnage, Float
|
524
|
+
has_one :body, EquipmentPart
|
525
|
+
has_many :flashes, EquipmentPart, tag: "flash"
|
526
|
+
has_one :housing, EquipmentPart
|
527
|
+
has_one :lens, EquipmentPart
|
852
528
|
end
|
853
529
|
|
854
|
-
class
|
530
|
+
class EquipmentContent
|
855
531
|
include HappyMapper
|
856
532
|
|
857
|
-
tag "
|
858
|
-
|
859
|
-
|
860
|
-
has_many :
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
has_many :
|
866
|
-
|
867
|
-
|
533
|
+
has_many :boots, EquipmentPart, tag: "boots"
|
534
|
+
has_many :buoyancy_control_devices, EquipmentPart, tag: "buoyancycontroldevice"
|
535
|
+
has_many :cameras, Camera, tag: "camera"
|
536
|
+
has_many :compasses, EquipmentPart, tag: "compass"
|
537
|
+
has_many :dive_computers, EquipmentPart, tag: "divecomputer"
|
538
|
+
has_many :fins, EquipmentPart, tag: "fins"
|
539
|
+
has_many :gloves, EquipmentPart, tag: "gloves"
|
540
|
+
has_many :knives, EquipmentPart, tag: "knife"
|
541
|
+
has_many :leads, Lead, tag: "lead"
|
542
|
+
has_many :lights, EquipmentPart, tag: "light"
|
543
|
+
has_many :masks, EquipmentPart, tag: "mask"
|
544
|
+
has_many :rebreathers, Rebreather, tag: "rebreather"
|
545
|
+
has_many :regulators, EquipmentPart, tag: "regulator"
|
546
|
+
has_many :scooters, EquipmentPart, tag: "scooter"
|
547
|
+
has_many :suits, Suit, tag: "suit"
|
548
|
+
has_many :tanks, Tank, tag: "tank"
|
549
|
+
has_many :various_pieces, EquipmentPart, tag: "variouspieces"
|
550
|
+
has_many :video_cameras, EquipmentPart, tag: "videocamera"
|
551
|
+
has_many :watches, EquipmentPart, tag: "watch"
|
868
552
|
end
|
869
553
|
|
870
|
-
class
|
554
|
+
class EquipmentConfiguration < EquipmentContent
|
871
555
|
include HappyMapper
|
872
556
|
|
873
|
-
tag "
|
557
|
+
tag "equipmentconfiguration"
|
874
558
|
|
875
559
|
has_many :alias_names, String, tag: "aliasname"
|
876
|
-
|
877
|
-
has_one :contact, Base::Models::Contact
|
560
|
+
has_many :links, Base::Models::Link, tag: "link"
|
878
561
|
has_one :name, String
|
879
|
-
has_one :notes, Notes
|
880
|
-
has_many :ratings, Rating, tag: "rating"
|
562
|
+
has_one :notes, Base::Models::Notes
|
881
563
|
end
|
882
564
|
|
883
|
-
class
|
565
|
+
class Equipment < EquipmentContent
|
884
566
|
include HappyMapper
|
885
567
|
|
886
|
-
tag "
|
568
|
+
tag "equipment"
|
887
569
|
|
888
|
-
|
889
|
-
|
570
|
+
has_many :compressors, EquipmentPart, tag: "compressor"
|
571
|
+
has_one :equipment_configuration, EquipmentConfiguration, tag: "equipmentconfiguration"
|
890
572
|
end
|
891
573
|
|
892
|
-
class
|
574
|
+
class BuddyOwnerShared
|
893
575
|
include HappyMapper
|
894
576
|
|
895
|
-
|
896
|
-
|
577
|
+
attribute :id, String
|
897
578
|
has_one :address, Base::Models::Address
|
898
|
-
has_many :alias_names, String, tag: "aliasname"
|
899
|
-
has_one :category, String
|
900
579
|
has_one :contact, Base::Models::Contact
|
901
|
-
has_one :
|
902
|
-
has_one :
|
903
|
-
|
580
|
+
has_one :dive_insurances, Base::Models::DiveInsurances, tag: "diveinsurances"
|
581
|
+
has_one :dive_permissions, Base::Models::DivePermissions, tag: "divepermissions"
|
582
|
+
has_one :equipment, Equipment
|
583
|
+
has_one :medical, Base::Models::Medical
|
584
|
+
has_one :notes, Base::Models::Notes
|
585
|
+
has_one :personal, Base::Models::Personal
|
904
586
|
end
|
905
587
|
|
906
|
-
class
|
588
|
+
class Buddy < BuddyOwnerShared
|
907
589
|
include HappyMapper
|
908
590
|
|
909
|
-
tag "
|
591
|
+
tag "buddy"
|
910
592
|
|
911
|
-
|
912
|
-
has_one :
|
913
|
-
has_one :
|
914
|
-
has_one :location, String
|
915
|
-
has_one :longitude, Float
|
916
|
-
has_one :time_zone, Float, tag: "timezone"
|
593
|
+
attribute :id, String
|
594
|
+
has_one :certification, Base::Models::CertificationV322
|
595
|
+
has_one :student, String
|
917
596
|
end
|
918
597
|
|
919
|
-
class
|
598
|
+
class Owner < BuddyOwnerShared
|
920
599
|
include HappyMapper
|
921
600
|
|
922
|
-
tag "
|
601
|
+
tag "owner"
|
923
602
|
|
924
|
-
attribute :
|
925
|
-
has_one :
|
926
|
-
has_one :date_of_trip, DateOfTrip, tag: "dateoftrip"
|
927
|
-
has_one :geography, Geography
|
928
|
-
has_many :links, Link, tag: "link"
|
929
|
-
has_one :name, String
|
930
|
-
has_one :notes, Notes
|
931
|
-
has_one :operator, Operator
|
932
|
-
has_one :price_dive_package, PriceDivePackage, tag: "pricedivepackage"
|
933
|
-
has_one :price_per_dive, Price, tag: "priceperdive"
|
934
|
-
has_one :related_dives, RelatedDives, tag: "relateddives"
|
935
|
-
has_one :vessel, Vessel
|
603
|
+
attribute :id, String
|
604
|
+
has_one :education, Base::Models::EducationV322
|
936
605
|
end
|
937
606
|
|
938
|
-
class
|
607
|
+
class Diver
|
939
608
|
include HappyMapper
|
940
609
|
|
941
|
-
tag "
|
942
|
-
|
943
|
-
attribute :id, String
|
944
|
-
has_many :alias_names, String, tag: "aliasname"
|
945
|
-
has_one :name, String
|
946
|
-
has_many :ratings, Rating, tag: "rating"
|
947
|
-
has_many :trip_parts, TripPart, tag: "trippart"
|
948
|
-
end
|
949
|
-
|
950
|
-
class DiveTrip
|
951
|
-
include HappyMapper
|
952
|
-
|
953
|
-
tag "divetrip"
|
954
|
-
|
955
|
-
has_many :trips, Trip, tag: "trip"
|
956
|
-
end
|
957
|
-
|
958
|
-
class Ecology
|
959
|
-
include HappyMapper
|
960
|
-
|
961
|
-
tag "ecology"
|
962
|
-
|
963
|
-
has_one :fauna, Fauna
|
964
|
-
has_one :flora, Flora
|
965
|
-
end
|
966
|
-
|
967
|
-
class Built
|
968
|
-
include HappyMapper
|
969
|
-
|
970
|
-
tag "built"
|
971
|
-
|
972
|
-
has_one :launching_date, Base::Models::DateTimeField, tag: "launchingdate"
|
973
|
-
has_one :ship_yard, String, tag: "shipyard"
|
974
|
-
end
|
975
|
-
|
976
|
-
class Wreck
|
977
|
-
include HappyMapper
|
978
|
-
|
979
|
-
tag "wreck"
|
980
|
-
|
981
|
-
has_many :alias_names, String, tag: "aliasname"
|
982
|
-
has_one :built, Built
|
983
|
-
has_one :name, String
|
984
|
-
has_one :nationality, String
|
985
|
-
has_one :ship_dimension, ShipDimension, tag: "shipdimension"
|
986
|
-
has_one :ship_type, String, tag: "shiptype"
|
987
|
-
has_one :sunk, Base::Models::DateTimeField
|
988
|
-
end
|
989
|
-
|
990
|
-
class Shore
|
991
|
-
include HappyMapper
|
992
|
-
|
993
|
-
tag "shore"
|
994
|
-
|
995
|
-
attribute :id, String
|
996
|
-
has_many :alias_names, String, tag: "aliasname"
|
997
|
-
has_one :name, String
|
998
|
-
has_one :notes, Notes
|
999
|
-
end
|
1000
|
-
|
1001
|
-
class River
|
1002
|
-
include HappyMapper
|
1003
|
-
|
1004
|
-
tag "river"
|
1005
|
-
|
1006
|
-
attribute :id, String
|
1007
|
-
has_many :alias_names, String, tag: "aliasname"
|
1008
|
-
has_one :name, String
|
1009
|
-
has_one :notes, Notes
|
1010
|
-
end
|
1011
|
-
|
1012
|
-
class Lake
|
1013
|
-
include HappyMapper
|
1014
|
-
|
1015
|
-
tag "lake"
|
1016
|
-
|
1017
|
-
attribute :id, String
|
1018
|
-
has_many :alias_names, String, tag: "aliasname"
|
1019
|
-
has_one :name, String
|
1020
|
-
has_one :notes, Notes
|
1021
|
-
end
|
1022
|
-
|
1023
|
-
class Indoor
|
1024
|
-
include HappyMapper
|
1025
|
-
|
1026
|
-
tag "indoor"
|
1027
|
-
|
1028
|
-
has_one :address, Base::Models::Address
|
1029
|
-
has_many :alias_names, String, tag: "aliasname"
|
1030
|
-
has_one :contact, Base::Models::Contact
|
1031
|
-
has_one :name, String
|
1032
|
-
has_one :notes, Notes
|
1033
|
-
end
|
1034
|
-
|
1035
|
-
class Cave
|
1036
|
-
include HappyMapper
|
1037
|
-
|
1038
|
-
tag "cave"
|
1039
|
-
|
1040
|
-
attribute :id, String
|
1041
|
-
has_many :alias_names, String, tag: "aliasname"
|
1042
|
-
has_one :name, String
|
1043
|
-
has_one :notes, Notes
|
1044
|
-
end
|
1045
|
-
|
1046
|
-
class SiteData
|
1047
|
-
include HappyMapper
|
1048
|
-
|
1049
|
-
tag "sidedata"
|
1050
|
-
|
1051
|
-
has_one :area_length, Float, tag: "arealength"
|
1052
|
-
has_one :area_width, Float, tag: "areawidth"
|
1053
|
-
has_one :average_visibility, Float, tag: "averagevisibility"
|
1054
|
-
has_one :bottom, String
|
1055
|
-
has_one :cave, Cave
|
1056
|
-
has_one :density, Float
|
1057
|
-
has_one :difficulty, Integer
|
1058
|
-
has_one :global_light_intensity, String, tag: "globallightintensity"
|
1059
|
-
has_one :indoor, Indoor
|
1060
|
-
has_one :maximum_depth, Float, tag: "maximumdepth"
|
1061
|
-
has_one :maximum_visibility, Float, tag: "maximumvisibility"
|
1062
|
-
has_one :minimum_depth, Float, tag: "minimumdepth"
|
1063
|
-
has_one :minimum_visibility, Float, tag: "minimumvisibility"
|
1064
|
-
has_one :river, River
|
1065
|
-
has_one :shore, Shore
|
1066
|
-
has_one :terrain, String
|
1067
|
-
has_one :wreck, Wreck
|
1068
|
-
end
|
1069
|
-
|
1070
|
-
class Site
|
1071
|
-
include HappyMapper
|
1072
|
-
|
1073
|
-
tag "site"
|
1074
|
-
|
1075
|
-
attribute :id, String
|
1076
|
-
has_many :alias_names, String, tag: "aliasname"
|
1077
|
-
has_one :ecology, Ecology
|
1078
|
-
has_one :environment, String
|
1079
|
-
has_one :geography, Geography
|
1080
|
-
has_many :links, Link, tag: "link"
|
1081
|
-
has_one :name, String
|
1082
|
-
has_one :notes, Notes
|
1083
|
-
has_many :ratings, Rating, tag: "rating"
|
1084
|
-
has_one :side_data, SiteData, tag: "sitedata"
|
1085
|
-
end
|
1086
|
-
|
1087
|
-
class Guide
|
1088
|
-
include HappyMapper
|
1089
|
-
|
1090
|
-
tag "guide"
|
1091
|
-
|
1092
|
-
has_many :links, Link, tag: "link"
|
1093
|
-
end
|
1094
|
-
|
1095
|
-
class DiveBase
|
1096
|
-
include HappyMapper
|
1097
|
-
|
1098
|
-
tag "divebase"
|
1099
|
-
|
1100
|
-
attribute :id, String
|
1101
|
-
has_one :address, Base::Models::Address
|
1102
|
-
has_many :alias_names, String, tag: "aliasname"
|
1103
|
-
has_one :contact, Base::Models::Contact
|
1104
|
-
has_many :guides, Guide, tag: "guide"
|
1105
|
-
has_many :links, Link, tag: "link"
|
1106
|
-
has_one :name, String
|
1107
|
-
has_one :notes, Notes
|
1108
|
-
has_one :price_dive_package, PriceDivePackage, tag: "pricedivepackage"
|
1109
|
-
has_one :price_per_dive, Price, tag: "priceperdive"
|
1110
|
-
has_many :ratings, Rating, tag: "rating"
|
1111
|
-
end
|
1112
|
-
|
1113
|
-
class DiveSite
|
1114
|
-
include HappyMapper
|
1115
|
-
|
1116
|
-
tag "divesite"
|
1117
|
-
|
1118
|
-
has_many :dive_bases, DiveBase, tag: "divebase"
|
1119
|
-
has_many :sites, Site, tag: "site"
|
1120
|
-
end
|
1121
|
-
|
1122
|
-
class Shop
|
1123
|
-
include HappyMapper
|
1124
|
-
|
1125
|
-
tag "shop"
|
1126
|
-
|
1127
|
-
has_many :alias_names, String, tag: "aliasname"
|
1128
|
-
has_one :address, Base::Models::Address
|
1129
|
-
has_one :contact, Base::Models::Contact
|
1130
|
-
has_one :name, String
|
1131
|
-
has_one :notes, Notes
|
1132
|
-
end
|
1133
|
-
|
1134
|
-
class Business
|
1135
|
-
include HappyMapper
|
1136
|
-
|
1137
|
-
tag "business"
|
1138
|
-
|
1139
|
-
has_one :shop, Shop
|
1140
|
-
end
|
1141
|
-
|
1142
|
-
class Membership
|
1143
|
-
include HappyMapper
|
1144
|
-
|
1145
|
-
tag "membership"
|
1146
|
-
|
1147
|
-
attribute :organisation, String
|
1148
|
-
attribute :member_id, String, tag: "memberid"
|
1149
|
-
end
|
1150
|
-
|
1151
|
-
class NumberOfDives
|
1152
|
-
include HappyMapper
|
1153
|
-
|
1154
|
-
tag "numberofdives"
|
1155
|
-
|
1156
|
-
has_one :start_date, DateTime, tag: "startdate"
|
1157
|
-
has_one :end_date, DateTime, tag: "enddate"
|
1158
|
-
has_one :dives, Integer
|
1159
|
-
end
|
1160
|
-
|
1161
|
-
class Personal
|
1162
|
-
include HappyMapper
|
1163
|
-
|
1164
|
-
tag "personal"
|
1165
|
-
|
1166
|
-
has_one :birth_date, Base::Models::DateTimeField, tag: "birthdate"
|
1167
|
-
has_one :birth_name, String, tag: "birthname"
|
1168
|
-
has_one :blood_group, String, tag: "bloodgroup"
|
1169
|
-
has_one :first_name, String, tag: "firstname"
|
1170
|
-
has_one :height, Float
|
1171
|
-
has_one :honorific, String
|
1172
|
-
has_one :last_name, String, tag: "lastname"
|
1173
|
-
has_one :membership, Membership
|
1174
|
-
has_one :middle_name, String, tag: "middlename"
|
1175
|
-
has_one :number_of_dives, NumberOfDives, tag: "numberofdives"
|
1176
|
-
has_one :sex, String
|
1177
|
-
has_one :smoking, String
|
1178
|
-
has_one :weight, Float
|
1179
|
-
end
|
1180
|
-
|
1181
|
-
class Instructor
|
1182
|
-
include HappyMapper
|
1183
|
-
|
1184
|
-
tag "instructor"
|
1185
|
-
|
1186
|
-
has_one :address, Base::Models::Address
|
1187
|
-
has_one :contact, Base::Models::Contact
|
1188
|
-
has_one :personal, Personal
|
1189
|
-
end
|
1190
|
-
|
1191
|
-
class Certification
|
1192
|
-
include HappyMapper
|
1193
|
-
|
1194
|
-
tag "certification"
|
1195
|
-
|
1196
|
-
has_one :certificate_number, String, tag: "certificatenumber"
|
1197
|
-
has_one :instructor, Instructor
|
1198
|
-
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1199
|
-
has_one :level, String
|
1200
|
-
has_one :link, Link
|
1201
|
-
has_one :organization, String
|
1202
|
-
has_one :specialty, String
|
1203
|
-
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1204
|
-
end
|
1205
|
-
|
1206
|
-
class Education
|
1207
|
-
include HappyMapper
|
1208
|
-
|
1209
|
-
tag "education"
|
1210
|
-
|
1211
|
-
has_many :certifications, Certification, tag: "certification"
|
1212
|
-
end
|
1213
|
-
|
1214
|
-
class Insurance
|
1215
|
-
include HappyMapper
|
1216
|
-
|
1217
|
-
tag "insurance"
|
1218
|
-
|
1219
|
-
has_many :alias_names, String, tag: "aliasname"
|
1220
|
-
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1221
|
-
has_one :name, String
|
1222
|
-
has_one :notes, Notes
|
1223
|
-
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1224
|
-
end
|
1225
|
-
|
1226
|
-
class DiveInsurances
|
1227
|
-
include HappyMapper
|
1228
|
-
|
1229
|
-
tag "diveinsurances"
|
1230
|
-
|
1231
|
-
has_many :insurances, Insurance, tag: "insurance"
|
1232
|
-
end
|
1233
|
-
|
1234
|
-
class Permit
|
1235
|
-
include HappyMapper
|
1236
|
-
|
1237
|
-
tag "permit"
|
1238
|
-
|
1239
|
-
has_many :alias_names, String, tag: "aliasname"
|
1240
|
-
has_one :issue_date, Base::Models::DateTimeField, tag: "issuedate"
|
1241
|
-
has_one :name, String
|
1242
|
-
has_one :notes, Notes
|
1243
|
-
has_one :region, String
|
1244
|
-
has_one :valid_date, Base::Models::DateTimeField, tag: "validdate"
|
1245
|
-
end
|
1246
|
-
|
1247
|
-
class DivePermissions
|
1248
|
-
include HappyMapper
|
1249
|
-
|
1250
|
-
tag "divepermissions"
|
1251
|
-
|
1252
|
-
has_many :permits, Permit, tag: "permit"
|
1253
|
-
end
|
1254
|
-
|
1255
|
-
class Purchase
|
1256
|
-
include HappyMapper
|
1257
|
-
|
1258
|
-
tag "purchase"
|
1259
|
-
|
1260
|
-
has_one :datetime, DateTime
|
1261
|
-
has_one :link, Link
|
1262
|
-
has_one :price, Price
|
1263
|
-
has_one :shop, Shop
|
1264
|
-
end
|
1265
|
-
|
1266
|
-
class EquipmentPart
|
1267
|
-
include HappyMapper
|
1268
|
-
|
1269
|
-
tag "equipmentpart"
|
1270
|
-
|
1271
|
-
attribute :id, String
|
1272
|
-
has_many :alias_names, String, tag: "aliasname"
|
1273
|
-
has_many :links, Link, tag: "link"
|
1274
|
-
has_one :manufacturer, Manufacturer
|
1275
|
-
has_one :model, String
|
1276
|
-
has_one :name, String
|
1277
|
-
has_one :next_service_date, Base::Models::DateTimeField, tag: "nextservicedate"
|
1278
|
-
has_one :notes, Notes
|
1279
|
-
has_one :purchase, Purchase
|
1280
|
-
has_one :serial_number, String, tag: "serialnumber"
|
1281
|
-
has_one :service_interval, Integer, tag: "serviceinterval"
|
1282
|
-
end
|
1283
|
-
|
1284
|
-
class Lead < EquipmentPart
|
1285
|
-
include HappyMapper
|
1286
|
-
|
1287
|
-
tag "lead"
|
1288
|
-
|
1289
|
-
has_one :lead_quantity, Integer, tag: "leadquantity"
|
1290
|
-
end
|
1291
|
-
|
1292
|
-
class Rebreather < EquipmentPart
|
1293
|
-
include HappyMapper
|
1294
|
-
|
1295
|
-
tag "rebreather"
|
1296
|
-
|
1297
|
-
has_many :o2_sensors, EquipmentPart, tag: "o2sensor"
|
1298
|
-
end
|
1299
|
-
|
1300
|
-
class Suit < EquipmentPart
|
1301
|
-
include HappyMapper
|
1302
|
-
|
1303
|
-
tag "suit"
|
1304
|
-
|
1305
|
-
has_one :suit_type, String, tag: "suittype"
|
1306
|
-
end
|
1307
|
-
|
1308
|
-
class Tank < EquipmentPart
|
1309
|
-
include HappyMapper
|
1310
|
-
|
1311
|
-
tag "tank"
|
1312
|
-
|
1313
|
-
has_one :tank_material, String, tag: "tankmaterial"
|
1314
|
-
has_one :tank_volume, Float, tag: "tankvolume"
|
1315
|
-
end
|
1316
|
-
|
1317
|
-
class Camera
|
1318
|
-
include HappyMapper
|
1319
|
-
|
1320
|
-
tag "camera"
|
1321
|
-
|
1322
|
-
has_one :body, EquipmentPart
|
1323
|
-
has_many :flashes, EquipmentPart, tag: "flash"
|
1324
|
-
has_one :housing, EquipmentPart
|
1325
|
-
has_one :lens, EquipmentPart
|
1326
|
-
end
|
1327
|
-
|
1328
|
-
class EquipmentContent
|
1329
|
-
include HappyMapper
|
1330
|
-
|
1331
|
-
has_many :boots, EquipmentPart, tag: "boots"
|
1332
|
-
has_many :buoyancy_control_devices, EquipmentPart, tag: "buoyancycontroldevice"
|
1333
|
-
has_many :cameras, Camera, tag: "camera"
|
1334
|
-
has_many :compasses, EquipmentPart, tag: "compass"
|
1335
|
-
has_many :dive_computers, EquipmentPart, tag: "divecomputer"
|
1336
|
-
has_many :fins, EquipmentPart, tag: "fins"
|
1337
|
-
has_many :gloves, EquipmentPart, tag: "gloves"
|
1338
|
-
has_many :knives, EquipmentPart, tag: "knife"
|
1339
|
-
has_many :leads, Lead, tag: "lead"
|
1340
|
-
has_many :lights, EquipmentPart, tag: "light"
|
1341
|
-
has_many :masks, EquipmentPart, tag: "mask"
|
1342
|
-
has_many :rebreathers, Rebreather, tag: "rebreather"
|
1343
|
-
has_many :regulators, EquipmentPart, tag: "regulator"
|
1344
|
-
has_many :scooters, EquipmentPart, tag: "scooter"
|
1345
|
-
has_many :suits, Suit, tag: "suit"
|
1346
|
-
has_many :tanks, Tank, tag: "tank"
|
1347
|
-
has_many :various_pieces, EquipmentPart, tag: "variouspieces"
|
1348
|
-
has_many :video_cameras, EquipmentPart, tag: "videocamera"
|
1349
|
-
has_many :watches, EquipmentPart, tag: "watch"
|
1350
|
-
end
|
1351
|
-
|
1352
|
-
class EquipmentConfiguration < EquipmentContent
|
1353
|
-
include HappyMapper
|
1354
|
-
|
1355
|
-
tag "equipmentconfiguration"
|
1356
|
-
|
1357
|
-
has_many :alias_names, String, tag: "aliasname"
|
1358
|
-
has_many :links, Link, tag: "link"
|
1359
|
-
has_one :name, String
|
1360
|
-
has_one :notes, Notes
|
1361
|
-
end
|
1362
|
-
|
1363
|
-
class Equipment < EquipmentContent
|
1364
|
-
include HappyMapper
|
1365
|
-
|
1366
|
-
tag "equipment"
|
1367
|
-
|
1368
|
-
has_many :compressors, EquipmentPart, tag: "compressor"
|
1369
|
-
has_one :equipment_configuration, EquipmentConfiguration, tag: "equipmentconfiguration"
|
1370
|
-
end
|
1371
|
-
|
1372
|
-
class Doctor
|
1373
|
-
include HappyMapper
|
1374
|
-
|
1375
|
-
tag "doctor"
|
1376
|
-
|
1377
|
-
attribute :id, String
|
1378
|
-
has_one :address, Base::Models::Address
|
1379
|
-
has_one :contact, Base::Models::Contact
|
1380
|
-
has_one :personal, Personal
|
1381
|
-
end
|
1382
|
-
|
1383
|
-
class Examination
|
1384
|
-
include HappyMapper
|
1385
|
-
|
1386
|
-
tag "examination"
|
1387
|
-
|
1388
|
-
has_one :datetime, DateTime
|
1389
|
-
has_one :doctor, Doctor
|
1390
|
-
has_one :examination_result, String, tag: "examinationresult"
|
1391
|
-
has_many :links, Link, tag: "link"
|
1392
|
-
has_one :notes, Notes
|
1393
|
-
has_one :total_lung_capacity, Float, tag: "totallungcapacity"
|
1394
|
-
has_one :vital_capacity, Float, tag: "vitalcapacity"
|
1395
|
-
end
|
1396
|
-
|
1397
|
-
class Medical
|
1398
|
-
include HappyMapper
|
1399
|
-
|
1400
|
-
tag "medical"
|
1401
|
-
|
1402
|
-
has_one :examination, Examination
|
1403
|
-
end
|
1404
|
-
|
1405
|
-
class BuddyOwnerShared
|
1406
|
-
include HappyMapper
|
1407
|
-
|
1408
|
-
attribute :id, String
|
1409
|
-
has_one :address, Base::Models::Address
|
1410
|
-
has_one :contact, Base::Models::Contact
|
1411
|
-
has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
|
1412
|
-
has_one :dive_permissions, DivePermissions, tag: "divepermissions"
|
1413
|
-
has_one :equipment, Equipment
|
1414
|
-
has_one :medical, Medical
|
1415
|
-
has_one :notes, Notes
|
1416
|
-
has_one :personal, Personal
|
1417
|
-
end
|
1418
|
-
|
1419
|
-
class Buddy
|
1420
|
-
include HappyMapper
|
1421
|
-
|
1422
|
-
tag "buddy"
|
1423
|
-
|
1424
|
-
attribute :id, String
|
1425
|
-
has_one :address, Base::Models::Address
|
1426
|
-
has_one :contact, Base::Models::Contact
|
1427
|
-
has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
|
1428
|
-
has_one :dive_permissions, DivePermissions, tag: "divepermissions"
|
1429
|
-
has_one :equipment, Equipment
|
1430
|
-
has_one :medical, Medical
|
1431
|
-
has_one :notes, Notes
|
1432
|
-
has_one :personal, Personal
|
1433
|
-
has_one :certification, Certification
|
1434
|
-
has_one :student, String
|
1435
|
-
end
|
1436
|
-
|
1437
|
-
class Owner
|
1438
|
-
include HappyMapper
|
1439
|
-
|
1440
|
-
tag "owner"
|
1441
|
-
|
1442
|
-
attribute :id, String
|
1443
|
-
has_one :address, Base::Models::Address
|
1444
|
-
has_one :contact, Base::Models::Contact
|
1445
|
-
has_one :dive_insurances, DiveInsurances, tag: "diveinsurances"
|
1446
|
-
has_one :dive_permissions, DivePermissions, tag: "divepermissions"
|
1447
|
-
has_one :equipment, Equipment
|
1448
|
-
has_one :medical, Medical
|
1449
|
-
has_one :notes, Notes
|
1450
|
-
has_one :personal, Personal
|
1451
|
-
has_one :education, Education
|
1452
|
-
end
|
1453
|
-
|
1454
|
-
class Diver
|
1455
|
-
include HappyMapper
|
1456
|
-
|
1457
|
-
tag "diver"
|
610
|
+
tag "diver"
|
1458
611
|
|
1459
612
|
has_many :buddies, Buddy, tag: "buddy"
|
1460
613
|
has_one :owner, Owner
|
1461
614
|
end
|
1462
615
|
|
1463
|
-
class DCAlarm
|
1464
|
-
include HappyMapper
|
1465
|
-
|
1466
|
-
tag "dcalarm"
|
1467
|
-
|
1468
|
-
has_one :acknowledge, String
|
1469
|
-
has_one :alarm_type, Integer, tag: "alarmtype"
|
1470
|
-
has_one :period, Float
|
1471
|
-
end
|
1472
|
-
|
1473
|
-
class SetDCDiveDepthAlarm
|
1474
|
-
include HappyMapper
|
1475
|
-
|
1476
|
-
tag "setdcdivedethalarm"
|
1477
|
-
|
1478
|
-
has_one :dc_alarm, DCAlarm, tag: "dcalarm"
|
1479
|
-
has_one :dc_alarm_depth, Float, tag: "dcalarmdepth"
|
1480
|
-
end
|
1481
|
-
|
1482
|
-
class SetDCDivePo2Alarm
|
1483
|
-
include HappyMapper
|
1484
|
-
|
1485
|
-
tag "setdcdivepo2alarm"
|
1486
|
-
|
1487
|
-
has_one :dc_alarm, DCAlarm, tag: "dcalarm"
|
1488
|
-
has_one :maximum_po2, Float, tag: "maximumpo2"
|
1489
|
-
end
|
1490
|
-
|
1491
|
-
class SetDCDiveSiteData
|
1492
|
-
include HappyMapper
|
1493
|
-
|
1494
|
-
tag "setdcdivesitedata"
|
1495
|
-
|
1496
|
-
attribute :dive_site, String, tag: "divesite"
|
1497
|
-
end
|
1498
|
-
|
1499
|
-
class SetDCDiveTimeAlarm
|
1500
|
-
include HappyMapper
|
1501
|
-
|
1502
|
-
tag "setdcdivetimealarm"
|
1503
|
-
|
1504
|
-
has_one :dc_alarm, DCAlarm, tag: "dcalarm"
|
1505
|
-
has_one :timespan, Float
|
1506
|
-
end
|
1507
|
-
|
1508
|
-
class SetDCEndNDTAlarm
|
1509
|
-
include HappyMapper
|
1510
|
-
|
1511
|
-
tag "setdcendndtalarm"
|
1512
|
-
|
1513
|
-
has_one :dc_alarm, DCAlarm, tag: "dcalarm"
|
1514
|
-
end
|
1515
|
-
|
1516
|
-
class SetDCDecoModel
|
1517
|
-
include HappyMapper
|
1518
|
-
|
1519
|
-
tag "setdcdecomodel"
|
1520
|
-
|
1521
|
-
has_many :alias_names, String, tag: "aliasname"
|
1522
|
-
has_one :application_data, ApplicationData, tag: "applicationdata"
|
1523
|
-
has_one :name, String
|
1524
|
-
end
|
1525
|
-
|
1526
|
-
class SetDCBuddyData
|
1527
|
-
include HappyMapper
|
1528
|
-
|
1529
|
-
tag "setdcbuddydata"
|
1530
|
-
|
1531
|
-
attribute :buddy, String
|
1532
|
-
end
|
1533
|
-
|
1534
|
-
class SetDCData
|
1535
|
-
include HappyMapper
|
1536
|
-
|
1537
|
-
tag "setdcdata"
|
1538
|
-
|
1539
|
-
has_one :set_dc_alarm_time, DateTime, tag: "setdcalarmtime"
|
1540
|
-
has_one :set_dc_altitude, Float, tag: "setdcaltitude"
|
1541
|
-
has_one :set_dc_buddy_data, SetDCBuddyData, tag: "setdcbuddydata"
|
1542
|
-
has_one :set_dc_date_time, DateTime, tag: "setdcdatetime"
|
1543
|
-
has_one :set_dc_deco_model, SetDCDecoModel, tag: "setdcdecomodel"
|
1544
|
-
has_one :set_dc_dive_depth_alarm, SetDCDiveDepthAlarm, tag: "setdcdivedethalarm"
|
1545
|
-
has_one :set_dc_dive_po2_alarm, SetDCDivePo2Alarm, tag: "setdcdivepo2alarm"
|
1546
|
-
has_many :set_dc_dive_site_data, SetDCDiveSiteData, tag: "setdcdivesitedata"
|
1547
|
-
has_one :set_dc_dive_time_alarm, SetDCDiveTimeAlarm, tag: "setdcdivetimealarm"
|
1548
|
-
has_one :set_dc_end_ndt_alarm, SetDCEndNDTAlarm, tag: "setdcendndtalarm"
|
1549
|
-
has_one :set_dc_gas_definitions_data, String, tag: "setdcgasdefinitionsdata"
|
1550
|
-
has_one :set_dc_owner_data, String, tag: "setdcownerdata"
|
1551
|
-
has_one :set_dc_password, String, tag: "setdcpassword"
|
1552
|
-
has_one :set_dc_generator_data, String, tag: "setdcgeneratordata"
|
1553
|
-
end
|
1554
|
-
|
1555
|
-
class GetDCData
|
1556
|
-
include HappyMapper
|
1557
|
-
|
1558
|
-
tag "getdcdata"
|
1559
|
-
|
1560
|
-
has_one :get_dc_all_data, String, tag: "getdcalldata"
|
1561
|
-
has_one :get_dc_generator_data, String, tag: "getdcgeneratordata"
|
1562
|
-
has_one :get_dc_owner_data, String, tag: "getdcownerdata"
|
1563
|
-
has_one :get_dc_buddy_data, String, tag: "getdcbuddydata"
|
1564
|
-
has_one :get_dc_gas_definitions_data, String, tag: "getdcgasdefinitionsdata"
|
1565
|
-
has_one :get_dc_dive_site_data, String, tag: "getdcdivesitedata"
|
1566
|
-
has_one :get_dc_dive_trip_data, String, tag: "getdcdivetripdata"
|
1567
|
-
has_one :get_dc_profile_data, String, tag: "getdcprofiledata"
|
1568
|
-
end
|
1569
|
-
|
1570
|
-
class DiveComputerDump
|
1571
|
-
include HappyMapper
|
1572
|
-
|
1573
|
-
tag "divecomputerdump"
|
1574
|
-
|
1575
|
-
has_one :datetime, DateTime
|
1576
|
-
has_one :dc_dump, String, tag: "dcdump"
|
1577
|
-
has_one :link, Link
|
1578
|
-
end
|
1579
|
-
|
1580
|
-
class DiveComputerControl
|
1581
|
-
include HappyMapper
|
1582
|
-
|
1583
|
-
tag "divecomputercontrol"
|
1584
|
-
|
1585
|
-
has_many :dive_computer_dumps, DiveComputerDump, tag: "divecomputerdump"
|
1586
|
-
has_one :get_dc_data, GetDCData, tag: "getdcdata"
|
1587
|
-
has_one :set_dc_data, SetDCData, tag: "setdcdata"
|
1588
|
-
end
|
1589
|
-
|
1590
616
|
class Uddf
|
1591
617
|
include HappyMapper
|
1592
618
|
|
@@ -1594,15 +620,15 @@ module UDDF
|
|
1594
620
|
|
1595
621
|
attribute :version, String
|
1596
622
|
has_one :business, Business
|
1597
|
-
has_one :deco_model,
|
1598
|
-
has_one :dive_computer_control,
|
623
|
+
has_one :deco_model, Base::Models::DecoModelV320, tag: "decomodel"
|
624
|
+
has_one :dive_computer_control, Base::Models::DiveComputerControlV310, tag: "divecomputercontrol"
|
1599
625
|
has_one :diver, Diver
|
1600
|
-
has_one :dive_site, DiveSite, tag: "divesite"
|
1601
|
-
has_one :dive_trip, DiveTrip, tag: "divetrip"
|
1602
|
-
has_one :gas_definitions, GasDefinitions, tag: "gasdefinitions"
|
1603
|
-
has_one :generator, Generator
|
626
|
+
has_one :dive_site, Base::Models::DiveSite, tag: "divesite"
|
627
|
+
has_one :dive_trip, Base::Models::DiveTrip, tag: "divetrip"
|
628
|
+
has_one :gas_definitions, Base::Models::GasDefinitions, tag: "gasdefinitions"
|
629
|
+
has_one :generator, Base::Models::Generator
|
1604
630
|
has_one :maker, Maker
|
1605
|
-
has_one :media_data, MediaData, tag: "mediadata"
|
631
|
+
has_one :media_data, Base::Models::MediaData, tag: "mediadata"
|
1606
632
|
has_one :profile_data, ProfileData, tag: "profiledata"
|
1607
633
|
has_one :table_generation, TableGeneration, tag: "tablegeneration"
|
1608
634
|
end
|