Sha256: d308ce14b1cfedd7b0cefb750628ad03ff54d913608ec04a44419e0712107433

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module Rfcxml
  module V3
    class U < Lutaml::Model::Serializable
      attribute :content, :string
      attribute :anchor, :string
      attribute :ascii, :string
      attribute :format, :string, default: -> { "lit-name-num" }
      attribute :pn, :string

      xml do
        root "u"

        map_content to: :content
        map_attribute "anchor", to: :anchor
        map_attribute "ascii", to: :ascii
        map_attribute "format", to: :format
        map_attribute "pn", to: :pn
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rfcxml-0.2.0 lib/rfcxml/v3/u.rb