Sha256: a0dbe6e52f2f6a7b6c19968de598bd8e66907c182d08c946ce627603e2e0b53f

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  class CartographicExtension < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :display_label, :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

1 entries across 1 versions & 1 rubygems

Version Path
loc_mods-0.2.5 lib/loc_mods/cartographic_extension.rb