Sha256: 3a6dfc7221d40eb0a8eda6ef8b439fb09442f598ec5e89f46ba3b9d1dd772789

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  class RoleTerm < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :type, :string

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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