Sha256: 123a7e7b1687f86a846eac6c5b1a382c3e7a8703110ed2d11e6a3c52939f85a2

Contents?: true

Size: 417 Bytes

Versions: 3

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require_relative "base_mapper"

module LocMods
  class CartographicExtension < BaseMapper
    attribute :content, Shale::Type::String
    attribute :display_label, Shale::Type::String

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

      map_content to: :content
      map_attribute "displayLabel", to: :display_label
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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