uddf 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +9 -9
- data/.rubocop.yml +15 -0
- data/.ruby-version +1 -0
- data/Gemfile +0 -5
- data/Gemfile.lock +85 -0
- data/README.md +55 -18
- data/dive_files/BaMQZdEhp3djeDxQ5HyCreOntBm1-1753908953.uddf +6060 -0
- data/dive_files/Peregrine TX[93CBB2BB]#140_2025-03-21.uddf +4735 -0
- data/dive_files/Peregrine TX[93CBB2BB]#148_2025-06-26.uddf +2414 -0
- data/lib/uddf/base/models.rb +39 -0
- data/lib/uddf/v300/schema.xsd +1645 -0
- data/lib/uddf/v301/schema.xsd +1645 -0
- data/lib/uddf/v310/schema.xsd +1798 -0
- data/lib/uddf/v320/schema.xsd +1834 -0
- data/lib/uddf/v321/schema.xsd +1834 -0
- data/lib/uddf/v322/schema.xsd +1883 -0
- data/lib/uddf/v323/models.rb +1629 -0
- data/lib/uddf/v323/schema.xsd +1890 -0
- data/lib/uddf/v330/schema.xsd +2126 -0
- data/lib/uddf/v331/schema.xsd +2155 -0
- data/lib/uddf/version.rb +2 -2
- data/lib/uddf.rb +67 -4
- data/test_files/v330/diver_data.uddf +311 -0
- data/uddf.gemspec +8 -5
- metadata +106 -7
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module UDDF
|
4
|
+
module Base
|
5
|
+
module Models
|
6
|
+
##
|
7
|
+
# Inside <address> the own (<owner> element) address data,
|
8
|
+
# or that of dive buddies (<buddy> element),
|
9
|
+
# or that of a shop (<shop> element) etc., are given.
|
10
|
+
class Address
|
11
|
+
include HappyMapper
|
12
|
+
|
13
|
+
tag "address"
|
14
|
+
|
15
|
+
has_one :street, String
|
16
|
+
has_one :city, String
|
17
|
+
has_one :postcode, String
|
18
|
+
has_one :country, String
|
19
|
+
has_one :province, String
|
20
|
+
end
|
21
|
+
|
22
|
+
##
|
23
|
+
# Inside <contact> data concerning getting in touch with some one are
|
24
|
+
# given, like phone number, email address, language etc.
|
25
|
+
class Contact
|
26
|
+
include HappyMapper
|
27
|
+
|
28
|
+
tag "contact"
|
29
|
+
|
30
|
+
has_many :emails, String, tag: "email"
|
31
|
+
has_many :faxes, String, tag: "fax"
|
32
|
+
has_many :homepages, String, tag: "homepage"
|
33
|
+
has_many :languages, String, tag: "language"
|
34
|
+
has_many :mobile_phones, String, tag: "mobilephone"
|
35
|
+
has_many :phones, String, tag: "phone"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|