Sha256: 32cd488b4bc0a5c5905164e87cbad16784590723c75e601fc16965f25adaaba8

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  class Classification < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :edition, :string
    attribute :display_label, :string
    attribute :alt_rep_group, :string
    attribute :usage, :string
    attribute :generator, :string

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

      map_content to: :content
      map_attribute "edition", to: :edition
      map_attribute "displayLabel", to: :display_label
      map_attribute "altRepGroup", to: :alt_rep_group
      map_attribute "usage", to: :usage
      map_attribute "generator", to: :generator
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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