Sha256: bdb1f7095ecfba98c67ac943de407507b181abfaf343521176c0c8084c4575f1

Contents?: true

Size: 747 Bytes

Versions: 3

Compression:

Stored size: 747 Bytes

Contents

# frozen_string_literal: true

require_relative "base_mapper"

module LocMods
  class RecordInfoNote < BaseMapper
    attribute :content, Shale::Type::String
    attribute :display_label, Shale::Type::String
    attribute :type, Shale::Type::String
    attribute :type_uri, Shale::Type::Value
    attribute :id, Shale::Type::Value
    attribute :alt_rep_group, Shale::Type::String

    xml do
      root "recordInfoNote"
      namespace "http://www.loc.gov/mods/v3", nil

      map_content to: :content
      map_attribute "displayLabel", to: :display_label
      map_attribute "type", to: :type
      map_attribute "typeURI", to: :type_uri
      map_attribute "ID", to: :id
      map_attribute "altRepGroup", to: :alt_rep_group
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loc_mods-0.2.4 lib/loc_mods/record_info_note.rb
loc_mods-0.2.3 lib/loc_mods/record_info_note.rb
loc_mods-0.2.2 lib/loc_mods/record_info_note.rb