Sha256: 0df275b40ad61bb6caa8eef1be85184c0db363f3813f60450af665efd6ead872

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

require_relative "base_mapper"

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

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

      map_content to: :content
      map_attribute "displayLabel", to: :display_label
      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/physical_location.rb
loc_mods-0.2.3 lib/loc_mods/physical_location.rb
loc_mods-0.2.2 lib/loc_mods/physical_location.rb