Sha256: 6454cea25cc9f797a926a0450e62773b0b0484aad099abe38b6bd27ae34d04d7

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

require_relative "base_mapper"

module LocMods
  class RecordIdentifier < BaseMapper
    attribute :content, Shale::Type::String
    attribute :source, Shale::Type::String

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

      map_content to: :content
      map_attribute "source", to: :source
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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