Sha256: 291a3db86276f5298df1787f8653738b47aad0577b97368f2817d98b4e974cb3
Contents?: true
Size: 770 Bytes
Versions: 3
Compression:
Stored size: 770 Bytes
Contents
# frozen_string_literal: true require_relative "base_mapper" module LocMods class Classification < BaseMapper attribute :content, Shale::Type::String attribute :edition, Shale::Type::String attribute :display_label, Shale::Type::String attribute :alt_rep_group, Shale::Type::String attribute :usage, Shale::Type::Value attribute :generator, Shale::Type::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.4 | lib/loc_mods/classification.rb |
loc_mods-0.2.3 | lib/loc_mods/classification.rb |
loc_mods-0.2.2 | lib/loc_mods/classification.rb |