Class: Cocina::Models::Mapping::FromMods::Note

Inherits:
Object
  • Object
show all
Defined in:
lib/cocina/models/mapping/from_mods/note.rb

Overview

Maps notes

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_element:) ⇒ 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

#buildObject



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