Class: Cocina::Models::Mapping::FromMods::Note
- Inherits:
-
Object
- Object
- Cocina::Models::Mapping::FromMods::Note
- Defined in:
- lib/cocina/models/mapping/from_mods/note.rb
Overview
Maps notes
Class Method Summary collapse
-
.build(resource_element:, description_builder: nil, purl: nil) ⇒ Hash
def self.build(resource_element:, description_builder: nil, purl: nil).
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(resource_element:) ⇒ Note
constructor
A new instance of Note.
Constructor Details
#initialize(resource_element:) ⇒ Note
Returns a new instance of Note.
18 19 20 |
# File 'lib/cocina/models/mapping/from_mods/note.rb', line 18 def initialize(resource_element:) @resource_element = resource_element end |
Class Method Details
.build(resource_element:, description_builder: nil, purl: nil) ⇒ Hash
def self.build(resource_element:, description_builder: nil, purl: nil)
14 15 16 |
# File 'lib/cocina/models/mapping/from_mods/note.rb', line 14 def self.build(resource_element:, description_builder: nil, purl: nil) new(resource_element: resource_element).build end |
Instance Method Details
#build ⇒ Object
22 23 24 |
# File 'lib/cocina/models/mapping/from_mods/note.rb', line 22 def build abstracts + notes + table_of_contents + target_audience + parts end |