Sha256: a77a6248ab2f7351cd28eefa690ec3cacb9a27954226e0244201367c20f7f09c

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

require_relative "base_mapper"

module LocMods
  class ScriptTerm < BaseMapper
    attribute :content, Shale::Type::String
    attribute :type, Shale::Type::String

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

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