Sha256: c567ef06079d7c0fe347eae08947257313fa7e7f48aeab48814289c73827e59a

Contents?: true

Size: 630 Bytes

Versions: 1

Compression:

Stored size: 630 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "text"

module Rfcxml
  module V3
    class List < Lutaml::Model::Serializable
      attribute :style, :string, default: -> { "empty" }
      attribute :hang_indent, :string
      attribute :counter, :string
      attribute :pn, :string
      attribute :text, Text, collection: true

      xml do
        root "list"

        map_attribute "style", to: :style
        map_attribute "hangIndent", to: :hang_indent
        map_attribute "counter", to: :counter
        map_attribute "pn", to: :pn
        map_element "t", to: :text
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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