Sha256: 415e449808f27922b1878f82f14740684fc663f7768dce711e6efc3117bdbd08

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "hierarchical_part"

module LocMods
  class Region < Lutaml::Model::Serializable
    attribute :content, HierarchicalPart
    attribute :region_type, :string

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

      map_content to: :content
      map_attribute "regionType", to: :region_type
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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