Sha256: 05b7dc1688ca1e0444b634d8dd772e31483519f0dd592f92f35d153a553dbf29

Contents?: true

Size: 337 Bytes

Versions: 3

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

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

    xml do
      root "RecordContentSource"
      map_content to: :content

      map_attribute "authority", to: :authority
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loc_mods-0.2.7 lib/loc_mods/record_content_source.rb
loc_mods-0.2.6 lib/loc_mods/record_content_source.rb
loc_mods-0.2.5 lib/loc_mods/record_content_source.rb