Sha256: 48af9dd94d407d2455a326f9d512278116b3601a8c69677f90afc89be8d96d37

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module Rfcxml
  module V3
    class Iref < Lutaml::Model::Serializable
      attribute :item, :string
      attribute :subitem, :string, default: -> { "" }
      attribute :primary, :string, default: -> { "false" }
      attribute :pn, :string

      xml do
        root "iref"

        map_attribute "item", to: :item
        map_attribute "subitem", to: :subitem
        map_attribute "primary", to: :primary
        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/iref.rb