Sha256: c8ee67962bc42dce0298d2e73fea2cf536e172e340b729b8360b3634397719ac

Contents?: true

Size: 426 Bytes

Versions: 3

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "place_term"

module LocMods
  class Place < Lutaml::Model::Serializable
    attribute :supplied, :string
    attribute :place_term, PlaceTerm, collection: true

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

      map_attribute "supplied", to: :supplied
      map_element "placeTerm", to: :place_term
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loc_mods-0.2.7 lib/loc_mods/place.rb
loc_mods-0.2.6 lib/loc_mods/place.rb
loc_mods-0.2.5 lib/loc_mods/place.rb