loc_mods 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -0
  3. data/.rubocop_todo.yml +83 -0
  4. data/lib/loc_mods/abstract.rb +9 -9
  5. data/lib/loc_mods/access_condition.rb +11 -11
  6. data/lib/loc_mods/alternative_name.rb +10 -10
  7. data/lib/loc_mods/area.rb +3 -3
  8. data/lib/loc_mods/cartographic_extension.rb +4 -4
  9. data/lib/loc_mods/cartographics.rb +8 -8
  10. data/lib/loc_mods/city_section.rb +3 -3
  11. data/lib/loc_mods/classification.rb +8 -8
  12. data/lib/loc_mods/cli.rb +1 -2
  13. data/lib/loc_mods/collection.rb +3 -3
  14. data/lib/loc_mods/copy_information.rb +5 -5
  15. data/lib/loc_mods/date.rb +8 -8
  16. data/lib/loc_mods/date_other.rb +4 -4
  17. data/lib/loc_mods/detail.rb +7 -7
  18. data/lib/loc_mods/edition.rb +4 -4
  19. data/lib/loc_mods/enumeration_and_chronology.rb +4 -4
  20. data/lib/loc_mods/extent.rb +4 -4
  21. data/lib/loc_mods/extent_definition.rb +7 -7
  22. data/lib/loc_mods/form.rb +5 -5
  23. data/lib/loc_mods/genre.rb +8 -8
  24. data/lib/loc_mods/geographic_code.rb +6 -6
  25. data/lib/loc_mods/hierarchical_geographic.rb +6 -6
  26. data/lib/loc_mods/hierarchical_part.rb +8 -8
  27. data/lib/loc_mods/holding_simple.rb +2 -2
  28. data/lib/loc_mods/identifier.rb +8 -8
  29. data/lib/loc_mods/item_identifier.rb +4 -4
  30. data/lib/loc_mods/language.rb +9 -9
  31. data/lib/loc_mods/language_term.rb +7 -7
  32. data/lib/loc_mods/location.rb +8 -8
  33. data/lib/loc_mods/name.rb +19 -19
  34. data/lib/loc_mods/name_part.rb +4 -4
  35. data/lib/loc_mods/non_sort.rb +4 -4
  36. data/lib/loc_mods/note.rb +7 -7
  37. data/lib/loc_mods/occupation.rb +6 -6
  38. data/lib/loc_mods/origin_info.rb +10 -10
  39. data/lib/loc_mods/part.rb +10 -10
  40. data/lib/loc_mods/physical_description.rb +10 -10
  41. data/lib/loc_mods/physical_description_note.rb +7 -7
  42. data/lib/loc_mods/physical_location.rb +5 -5
  43. data/lib/loc_mods/place.rb +3 -3
  44. data/lib/loc_mods/place_term.rb +7 -7
  45. data/lib/loc_mods/publisher.rb +6 -6
  46. data/lib/loc_mods/record.rb +4 -4
  47. data/lib/loc_mods/record_content_source.rb +4 -4
  48. data/lib/loc_mods/record_identifier.rb +4 -4
  49. data/lib/loc_mods/record_info.rb +9 -9
  50. data/lib/loc_mods/record_info_note.rb +8 -8
  51. data/lib/loc_mods/region.rb +3 -3
  52. data/lib/loc_mods/related_item.rb +10 -10
  53. data/lib/loc_mods/role.rb +2 -2
  54. data/lib/loc_mods/role_term.rb +4 -4
  55. data/lib/loc_mods/script_term.rb +4 -4
  56. data/lib/loc_mods/string_plus_language.rb +6 -6
  57. data/lib/loc_mods/string_plus_language_plus_authority.rb +6 -6
  58. data/lib/loc_mods/string_plus_language_plus_supplied.rb +4 -4
  59. data/lib/loc_mods/subject.rb +15 -15
  60. data/lib/loc_mods/subject_name.rb +14 -14
  61. data/lib/loc_mods/subject_title_info.rb +16 -16
  62. data/lib/loc_mods/table_of_contents.rb +9 -9
  63. data/lib/loc_mods/target_audience.rb +5 -5
  64. data/lib/loc_mods/temporal.rb +5 -5
  65. data/lib/loc_mods/text.rb +5 -5
  66. data/lib/loc_mods/title_info.rb +22 -22
  67. data/lib/loc_mods/type_of_resource.rb +8 -8
  68. data/lib/loc_mods/url.rb +8 -8
  69. data/lib/loc_mods/version.rb +1 -1
  70. data/lib/loc_mods.rb +7 -6
  71. metadata +5 -6
  72. data/lib/loc_mods/base_mapper.rb +0 -26
  73. data/lib/loc_mods/comparable_mapper.rb +0 -501
data/lib/loc_mods/role.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "role_term"
6
6
 
7
7
  module LocMods
8
- class Role < BaseMapper
8
+ class Role < Lutaml::Model::Serializable
9
9
  attribute :role_term, RoleTerm, collection: true
10
10
 
11
11
  xml do
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class RoleTerm < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :type, Shale::Type::String
6
+ class RoleTerm < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :type, :string
9
9
 
10
10
  xml do
11
11
  root "roleTerm"
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class ScriptTerm < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :type, Shale::Type::String
6
+ class ScriptTerm < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :type, :string
9
9
 
10
10
  xml do
11
11
  root "scriptTerm"
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class StringPlusLanguage < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :lang, Shale::Type::String
9
- attribute :script, Shale::Type::String
10
- attribute :transliteration, Shale::Type::String
6
+ class StringPlusLanguage < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :lang, :string
9
+ attribute :script, :string
10
+ attribute :transliteration, :string
11
11
 
12
12
  xml do
13
13
  root "nonSort"
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class StringPlusLanguagePlusAuthority < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :authority, Shale::Type::String
9
- attribute :authority_uri, Shale::Type::Value
10
- attribute :value_uri, Shale::Type::Value
6
+ class StringPlusLanguagePlusAuthority < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :authority, :string
9
+ attribute :authority_uri, :string
10
+ attribute :value_uri, :string
11
11
  end
12
12
  end
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class StringPlusLanguagePlusSupplied < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :supplied, Shale::Type::Value
6
+ class StringPlusLanguagePlusSupplied < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :supplied, :string
9
9
  end
10
10
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "cartographics"
6
6
  require_relative "genre"
@@ -12,19 +12,19 @@ require_relative "temporal"
12
12
  require_relative "occupation"
13
13
 
14
14
  module LocMods
15
- class Subject < BaseMapper
16
- attribute :id, Shale::Type::Value
17
- attribute :authority, Shale::Type::String
18
- attribute :authority_uri, Shale::Type::Value
19
- attribute :value_uri, Shale::Type::Value
20
- attribute :lang, Shale::Type::String
21
- attribute :script, Shale::Type::String
22
- attribute :transliteration, Shale::Type::String
23
- attribute :display_label, Shale::Type::String
24
- attribute :alt_rep_group, Shale::Type::String
25
- attribute :usage, Shale::Type::Value
26
- attribute :topic, Shale::Type::String, collection: true
27
- attribute :geographic, Shale::Type::String, collection: true
15
+ class Subject < Lutaml::Model::Serializable
16
+ attribute :id, :string
17
+ attribute :authority, :string
18
+ attribute :authority_uri, :string
19
+ attribute :value_uri, :string
20
+ attribute :lang, :string
21
+ attribute :script, :string
22
+ attribute :transliteration, :string
23
+ attribute :display_label, :string
24
+ attribute :alt_rep_group, :string
25
+ attribute :usage, :string
26
+ attribute :topic, :string, collection: true
27
+ attribute :geographic, :string, collection: true
28
28
  attribute :temporal, Temporal, collection: true
29
29
  attribute :title_info, SubjectTitleInfo, collection: true
30
30
  attribute :name, SubjectName, collection: true
@@ -33,7 +33,7 @@ module LocMods
33
33
  attribute :cartographics, Cartographics, collection: true
34
34
  attribute :occupation, Occupation, collection: true
35
35
  attribute :genre, Genre, collection: true
36
- attribute :href, Shale::Type::String
36
+ attribute :href, :string
37
37
 
38
38
  xml do
39
39
  root "subject"
@@ -1,27 +1,27 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "identifier"
6
6
  require_relative "name_part"
7
7
  require_relative "role"
8
8
 
9
9
  module LocMods
10
- class SubjectName < BaseMapper
11
- attribute :type, Shale::Type::String
12
- attribute :id, Shale::Type::Value
13
- attribute :authority, Shale::Type::String
14
- attribute :authority_uri, Shale::Type::Value
15
- attribute :value_uri, Shale::Type::Value
16
- attribute :lang, Shale::Type::String
17
- attribute :script, Shale::Type::String
18
- attribute :transliteration, Shale::Type::String
19
- attribute :display_label, Shale::Type::String
10
+ class SubjectName < Lutaml::Model::Serializable
11
+ attribute :type, :string
12
+ attribute :id, :string
13
+ attribute :authority, :string
14
+ attribute :authority_uri, :string
15
+ attribute :value_uri, :string
16
+ attribute :lang, :string
17
+ attribute :script, :string
18
+ attribute :transliteration, :string
19
+ attribute :display_label, :string
20
20
  attribute :name_part, NamePart, collection: true
21
- attribute :display_form, Shale::Type::String, collection: true
22
- attribute :affiliation, Shale::Type::String, collection: true
21
+ attribute :display_form, :string, collection: true
22
+ attribute :affiliation, :string, collection: true
23
23
  attribute :role, Role, collection: true
24
- attribute :description, Shale::Type::String, collection: true
24
+ attribute :description, :string, collection: true
25
25
  attribute :name_identifier, Identifier, collection: true
26
26
 
27
27
  xml do
@@ -1,23 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class SubjectTitleInfo < BaseMapper
7
- attribute :id, Shale::Type::Value
8
- attribute :authority, Shale::Type::String
9
- attribute :authority_uri, Shale::Type::Value
10
- attribute :value_uri, Shale::Type::Value
11
- attribute :lang, Shale::Type::String
12
- attribute :script, Shale::Type::String
13
- attribute :transliteration, Shale::Type::String
14
- attribute :display_label, Shale::Type::String
15
- attribute :type, Shale::Type::String
16
- attribute :title, Shale::Type::String, collection: true
17
- attribute :sub_title, Shale::Type::String, collection: true
18
- attribute :part_number, Shale::Type::String, collection: true
19
- attribute :part_name, Shale::Type::String, collection: true
20
- attribute :non_sort, Shale::Type::String, collection: true
6
+ class SubjectTitleInfo < Lutaml::Model::Serializable
7
+ attribute :id, :string
8
+ attribute :authority, :string
9
+ attribute :authority_uri, :string
10
+ attribute :value_uri, :string
11
+ attribute :lang, :string
12
+ attribute :script, :string
13
+ attribute :transliteration, :string
14
+ attribute :display_label, :string
15
+ attribute :type, :string
16
+ attribute :title, :string, collection: true
17
+ attribute :sub_title, :string, collection: true
18
+ attribute :part_number, :string, collection: true
19
+ attribute :part_name, :string, collection: true
20
+ attribute :non_sort, :string, collection: true
21
21
 
22
22
  xml do
23
23
  root "subjectTitleInfo"
@@ -1,16 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class TableOfContents < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :display_label, Shale::Type::String
9
- attribute :type, Shale::Type::String
10
- attribute :shareable, Shale::Type::Value
11
- attribute :alt_rep_group, Shale::Type::String
12
- attribute :alt_format, Shale::Type::Value
13
- attribute :content_type, Shale::Type::String
6
+ class TableOfContents < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :display_label, :string
9
+ attribute :type, :string
10
+ attribute :shareable, :string
11
+ attribute :alt_rep_group, :string
12
+ attribute :alt_format, :string
13
+ attribute :content_type, :string
14
14
 
15
15
  xml do
16
16
  root "tableOfContents"
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class TargetAudience < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :display_label, Shale::Type::String
9
- attribute :alt_rep_group, Shale::Type::String
6
+ class TargetAudience < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :display_label, :string
9
+ attribute :alt_rep_group, :string
10
10
 
11
11
  xml do
12
12
  root "targetAudience"
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "date"
6
6
 
7
7
  module LocMods
8
- class Temporal < BaseMapper
8
+ class Temporal < Lutaml::Model::Serializable
9
9
  attribute :content, Date
10
- attribute :authority, Shale::Type::String
11
- attribute :authority_uri, Shale::Type::Value
12
- attribute :value_uri, Shale::Type::Value
10
+ attribute :authority, :string
11
+ attribute :authority_uri, :string
12
+ attribute :value_uri, :string
13
13
 
14
14
  xml do
15
15
  root "temporal"
data/lib/loc_mods/text.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class Text < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :display_label, Shale::Type::String
9
- attribute :type, Shale::Type::String
6
+ class Text < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :display_label, :string
9
+ attribute :type, :string
10
10
 
11
11
  xml do
12
12
  root "text"
@@ -1,30 +1,30 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
  require_relative "non_sort"
5
5
 
6
6
  module LocMods
7
- class TitleInfo < BaseMapper
8
- attribute :type, Shale::Type::String
9
- attribute :other_type, Shale::Type::Value
10
- attribute :supplied, Shale::Type::Value
11
- attribute :alt_rep_group, Shale::Type::String
12
- attribute :alt_format, Shale::Type::Value
13
- attribute :content_type, Shale::Type::String
14
- attribute :name_title_group, Shale::Type::String
15
- attribute :usage, Shale::Type::Value
16
- attribute :id, Shale::Type::Value
17
- attribute :authority, Shale::Type::String
18
- attribute :authority_uri, Shale::Type::Value
19
- attribute :value_uri, Shale::Type::Value
20
- attribute :lang, Shale::Type::String
21
- attribute :script, Shale::Type::String
22
- attribute :transliteration, Shale::Type::String
23
- attribute :display_label, Shale::Type::String
24
- attribute :title, Shale::Type::String, collection: true
25
- attribute :sub_title, Shale::Type::String, collection: true
26
- attribute :part_number, Shale::Type::String, collection: true
27
- attribute :part_name, Shale::Type::String, collection: true
7
+ class TitleInfo < Lutaml::Model::Serializable
8
+ attribute :type, :string
9
+ attribute :other_type, :string
10
+ attribute :supplied, :string
11
+ attribute :alt_rep_group, :string
12
+ attribute :alt_format, :string
13
+ attribute :content_type, :string
14
+ attribute :name_title_group, :string
15
+ attribute :usage, :string
16
+ attribute :id, :string
17
+ attribute :authority, :string
18
+ attribute :authority_uri, :string
19
+ attribute :value_uri, :string
20
+ attribute :lang, :string
21
+ attribute :script, :string
22
+ attribute :transliteration, :string
23
+ attribute :display_label, :string
24
+ attribute :title, :string, collection: true
25
+ attribute :sub_title, :string, collection: true
26
+ attribute :part_number, :string, collection: true
27
+ attribute :part_name, :string, collection: true
28
28
  attribute :non_sort, NonSort, collection: true
29
29
 
30
30
  xml do
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class TypeOfResource < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :collection, Shale::Type::Value
9
- attribute :manuscript, Shale::Type::Value
10
- attribute :display_label, Shale::Type::String
11
- attribute :alt_rep_group, Shale::Type::String
12
- attribute :usage, Shale::Type::Value
6
+ class TypeOfResource < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :collection, :string
9
+ attribute :manuscript, :string
10
+ attribute :display_label, :string
11
+ attribute :alt_rep_group, :string
12
+ attribute :usage, :string
13
13
 
14
14
  xml do
15
15
  root "typeOfResource"
data/lib/loc_mods/url.rb CHANGED
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class Url < BaseMapper
7
- attribute :content, Shale::Type::Value
8
- attribute :date_last_accessed, Shale::Type::String
9
- attribute :display_label, Shale::Type::String
10
- attribute :note, Shale::Type::String
11
- attribute :access, Shale::Type::String
12
- attribute :usage, Shale::Type::String
6
+ class Url < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :date_last_accessed, :string
9
+ attribute :display_label, :string
10
+ attribute :note, :string
11
+ attribute :access, :string
12
+ attribute :usage, :string
13
13
 
14
14
  xml do
15
15
  root "url"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LocMods
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
5
5
  end
data/lib/loc_mods.rb CHANGED
@@ -1,14 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "loc_mods/version"
3
+ require "lutaml/model"
4
+
5
+ Lutaml::Model::Config.configure do |config|
6
+ require "lutaml/model/xml_adapter/nokogiri_adapter"
7
+ config.xml_adapter = Lutaml::Model::XmlAdapter::NokogiriAdapter
8
+ end
4
9
 
5
10
  module LocMods
6
11
  class Error < StandardError; end
7
- # Your code goes here...
8
12
  end
9
13
 
10
- require "shale"
11
- require "shale/adapter/nokogiri"
12
- Shale.xml_adapter = Shale::Adapter::Nokogiri
13
-
14
+ require_relative "loc_mods/version"
14
15
  require_relative "loc_mods/collection"
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loc_mods
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-13 00:00:00.000000000 Z
11
+ date: 2024-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: nokogiri
14
+ name: lutaml-model
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: shale
28
+ name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -132,6 +132,7 @@ extra_rdoc_files: []
132
132
  files:
133
133
  - ".rspec"
134
134
  - ".rubocop.yml"
135
+ - ".rubocop_todo.yml"
135
136
  - CODE_OF_CONDUCT.md
136
137
  - README.adoc
137
138
  - Rakefile
@@ -141,14 +142,12 @@ files:
141
142
  - lib/loc_mods/access_condition.rb
142
143
  - lib/loc_mods/alternative_name.rb
143
144
  - lib/loc_mods/area.rb
144
- - lib/loc_mods/base_mapper.rb
145
145
  - lib/loc_mods/cartographic_extension.rb
146
146
  - lib/loc_mods/cartographics.rb
147
147
  - lib/loc_mods/city_section.rb
148
148
  - lib/loc_mods/classification.rb
149
149
  - lib/loc_mods/cli.rb
150
150
  - lib/loc_mods/collection.rb
151
- - lib/loc_mods/comparable_mapper.rb
152
151
  - lib/loc_mods/copy_information.rb
153
152
  - lib/loc_mods/date.rb
154
153
  - lib/loc_mods/date_other.rb
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # lib/loc_mods/base_mapper.rb
4
- require "shale"
5
- require_relative "comparable_mapper"
6
-
7
- module LocMods
8
- # Base class for all object definitions
9
- class BaseMapper < Shale::Mapper
10
- include ComparableMapper
11
- end
12
-
13
- # Nil class substitute for comparison
14
- class ComparableNil < BaseMapper
15
- end
16
-
17
- # Comparison of two values for ComparableMapper
18
- class Comparison
19
- attr_accessor :original, :updated
20
-
21
- def initialize(original:, updated:)
22
- @original = original
23
- @updated = updated
24
- end
25
- end
26
- end