Sha256: fb38dfab4baaad81bf0e307d3dc5ec2ee1050c04d37f3d58fd0b6c57f2d0fb20

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

require_relative "base_mapper"

require_relative "hierarchical_part"

module LocMods
  class Area < BaseMapper
    attribute :content, HierarchicalPart
    attribute :area_type, Shale::Type::Value

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

      map_content to: :content
      map_attribute "areaType", to: :area_type
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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