Sha256: e8a758722fd71203405d8776028fd3a439265bca982972af82974593dae4daf7

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  class Form < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :type, :string
    attribute :authority, :string

    xml do
      root "form"
      namespace "http://www.loc.gov/mods/v3", nil

      map_content to: :content
      map_attribute "type", to: :type
      map_attribute "authority", to: :authority
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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