Sha256: 4794e619762e6cdf7c4902d043de1a6a692095bd385af6ea1931a582361e9418

Contents?: true

Size: 720 Bytes

Versions: 1

Compression:

Stored size: 720 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  class TypeOfResource < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :collection, :string
    attribute :manuscript, :string
    attribute :display_label, :string
    attribute :alt_rep_group, :string
    attribute :usage, :string

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

      map_content to: :content
      map_attribute "collection", to: :collection
      map_attribute "manuscript", to: :manuscript
      map_attribute "displayLabel", to: :display_label
      map_attribute "altRepGroup", to: :alt_rep_group
      map_attribute "usage", to: :usage
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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