Sha256: 772a939b0233228615ffab7342445945f4bbb318980399a0dcb7a7f2c063915d
Contents?: true
Size: 737 Bytes
Versions: 3
Compression:
Stored size: 737 Bytes
Contents
# frozen_string_literal: true require_relative "base_mapper" module LocMods class Date < BaseMapper attribute :content, Shale::Type::String attribute :encoding, Shale::Type::String attribute :qualifier, Shale::Type::String attribute :point, Shale::Type::String attribute :key_date, Shale::Type::Value attribute :calendar, Shale::Type::String xml do root "recordChangeDate" namespace "http://www.loc.gov/mods/v3", nil map_content to: :content map_attribute "encoding", to: :encoding map_attribute "qualifier", to: :qualifier map_attribute "point", to: :point map_attribute "keyDate", to: :key_date map_attribute "calendar", to: :calendar end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.4 | lib/loc_mods/date.rb |
loc_mods-0.2.3 | lib/loc_mods/date.rb |
loc_mods-0.2.2 | lib/loc_mods/date.rb |