Sha256: 2080c0cefe6dcfdd9c815c5d9dcbdd4bd0db83645a916830a277b78209d7a5cd

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  class Date < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :encoding, :string
    attribute :qualifier, :string
    attribute :point, :string
    attribute :key_date, :string
    attribute :calendar, :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

1 entries across 1 versions & 1 rubygems

Version Path
loc_mods-0.2.5 lib/loc_mods/date.rb