Sha256: 02c519f036af3b73f37a71fd2a6db1b41f80ae7f9d7a483aa33f9872c474889c

Contents?: true

Size: 790 Bytes

Versions: 2

Compression:

Stored size: 790 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  class Classification < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :authority, :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 "authority", to: :authority
      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

2 entries across 2 versions & 1 rubygems

Version Path
loc_mods-0.2.7 lib/loc_mods/classification.rb
loc_mods-0.2.6 lib/loc_mods/classification.rb