Sha256: c893e3522480db7b36bfc0385c028968316b78c69fcae25e3731b88f6c993c79
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
# frozen_string_literal: true require_relative "base_mapper" module LocMods class Detail < BaseMapper attribute :type, Shale::Type::String attribute :level, Shale::Type::Integer attribute :number, Shale::Type::String, collection: true attribute :caption, Shale::Type::String, collection: true attribute :title, Shale::Type::String, collection: true xml do root "detail" namespace "http://www.loc.gov/mods/v3", nil map_attribute "type", to: :type map_attribute "level", to: :level map_element "number", to: :number map_element "caption", to: :caption map_element "title", to: :title end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.4 | lib/loc_mods/detail.rb |
loc_mods-0.2.3 | lib/loc_mods/detail.rb |
loc_mods-0.2.2 | lib/loc_mods/detail.rb |