Sha256: 6db47ced55b809c845cdf006baf22e8fa378159139937a292d3cb7325e53e79a

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

require_relative "base_mapper"

require_relative "role_term"

module LocMods
  class Role < BaseMapper
    attribute :role_term, RoleTerm, collection: true

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

      map_element "roleTerm", to: :role_term
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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