edoxen 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,51 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # class ResolutionRelation {
4
- # source: StructuredIdentifier (Resolution)
5
- # destination: StructuredIdentifier (Resolution)
6
- # type: ResolutionRelationType
7
- # }
8
-
9
- # enum ResolutionRelationType {
10
- # annexOf {
11
- # This resolution is an annex to the target resolution.
12
- # }
13
-
14
- # hasAnnex {
15
- # The target resolution is an annex of the source resolution.
16
- # }
17
-
18
- # updates {
19
- # This resolution updates the target resolution.
20
- # }
21
-
22
- # refines {
23
- # This resolution refines the target resolution.
24
- # }
25
-
26
- # replaces/obsoletes {
27
- # This resolution replaces/obsoletes the target resolution.
28
- # }
29
-
30
- # considers {
31
- # This resolution is made in consideration of the target resolution.
32
- # }
33
- # }
34
-
35
- require "lutaml/model"
36
-
37
- module Edoxen
38
- class ResolutionRelationship < Lutaml::Model::Serializable
39
- RESOLUTION_RELATIONSHIP_ENUM = %w[annexOf hasAnnex updates refines replaces obsoletes considers].freeze
40
-
41
- attribute :source, :string
42
- attribute :destination, :string
43
- attribute :type, :string, values: RESOLUTION_RELATIONSHIP_ENUM
44
-
45
- key_value do
46
- map "source", to: :source
47
- map "destination", to: :destination
48
- map "type", to: :type
49
- end
50
- end
51
- end
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # SubjectBody {
4
- # name
5
- # address
6
- # etc.
7
- # }
8
- require "lutaml/model"
9
-
10
- module Edoxen
11
- class SubjectBody < Lutaml::Model::Serializable
12
- attribute :name, :string
13
- attribute :address, :string
14
-
15
- key_value do
16
- map "name", to: :name
17
- map "address", to: :address
18
- end
19
- end
20
- end