Sha256: e962319c3256caaba723ac85e6fbe105afe6d0259218d4dcf9c52df726768ecd
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true require "lutaml/model" require_relative "date" module LocMods class Temporal < Lutaml::Model::Serializable attribute :content, Date attribute :authority, :string attribute :authority_uri, :string attribute :value_uri, :string xml do root "temporal" namespace "http://www.loc.gov/mods/v3", nil map_content to: :content map_attribute "authority", to: :authority map_attribute "authorityURI", to: :authority_uri map_attribute "valueURI", to: :value_uri end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.7 | lib/loc_mods/temporal.rb |
loc_mods-0.2.6 | lib/loc_mods/temporal.rb |
loc_mods-0.2.5 | lib/loc_mods/temporal.rb |