Sha256: 03f39cbd615beba59dd2d496e844e0d6f2698fdc7c477730479fe2e7a9e696cd
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
# frozen_string_literal: true require_relative "base_mapper" module LocMods class ExtentDefinition < BaseMapper attribute :unit, Shale::Type::String attribute :start, Shale::Type::String attribute :end, Shale::Type::String attribute :total, Shale::Type::Integer attribute :list, Shale::Type::String xml do root "extentDefinition" namespace "http://www.loc.gov/mods/v3", nil map_attribute "unit", to: :unit map_element "start", to: :start map_element "end", to: :end map_element "total", to: :total map_element "list", to: :list end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.4 | lib/loc_mods/extent_definition.rb |
loc_mods-0.2.3 | lib/loc_mods/extent_definition.rb |
loc_mods-0.2.2 | lib/loc_mods/extent_definition.rb |