Sha256: 7f2513e8e067cdd4506cec62293d91d9490bffed64dfee246b67a7981fa8f469

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  class NonSort < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :space, :string

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

      map_content to: :content
      map_attribute "space", to: :space,
                             namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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