Sha256: 6cfd2c43446ecb230303f3da53d2b31376217aa7fd3d4e0ae0e743f1fb7a77b3

Contents?: true

Size: 796 Bytes

Versions: 1

Compression:

Stored size: 796 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "cref"
require_relative "eref"
require_relative "iref"
require_relative "spanx"
require_relative "xref"

module Rfcxml
  module V3
    class C < Lutaml::Model::Serializable
      attribute :content, :string
      attribute :cref, Cref, collection: true
      attribute :eref, Eref, collection: true
      attribute :iref, Iref, collection: true
      attribute :spanx, Spanx, collection: true
      attribute :xref, Xref, collection: true

      xml do
        root "c"

        map_content to: :content
        map_element "cref", to: :cref
        map_element "eref", to: :eref
        map_element "iref", to: :iref
        map_element "spanx", to: :spanx
        map_element "xref", to: :xref
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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