Sha256: c5652c9e2708dff14f4a3c4727ab6fec3b7bae30ed2af2b31a3ecf7fd9ccfa91

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

require "lutaml/model"

module Reqif
  class EditableAtts < Lutaml::Model::Serializable
    attribute :attribute_definition_boolean_ref, :string, collection: true
    attribute :attribute_definition_date_ref, :string, collection: true
    attribute :attribute_definition_enumeration_ref, :string, collection: true
    attribute :attribute_definition_integer_ref, :string, collection: true
    attribute :attribute_definition_real_ref, :string, collection: true
    attribute :attribute_definition_string_ref, :string, collection: true
    attribute :attribute_definition_xhtml_ref, :string, collection: true

    xml do
      root "EDITABLE-ATTS"
      namespace "http://www.omg.org/spec/ReqIF/20110401/reqif.xsd", "REQIF"

      map_element "ATTRIBUTE-DEFINITION-BOOLEAN-REF", to: :attribute_definition_boolean_ref
      map_element "ATTRIBUTE-DEFINITION-DATE-REF", to: :attribute_definition_date_ref
      map_element "ATTRIBUTE-DEFINITION-ENUMERATION-REF", to: :attribute_definition_enumeration_ref
      map_element "ATTRIBUTE-DEFINITION-INTEGER-REF", to: :attribute_definition_integer_ref
      map_element "ATTRIBUTE-DEFINITION-REAL-REF", to: :attribute_definition_real_ref
      map_element "ATTRIBUTE-DEFINITION-STRING-REF", to: :attribute_definition_string_ref
      map_element "ATTRIBUTE-DEFINITION-XHTML-REF", to: :attribute_definition_xhtml_ref
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reqif-0.1.0 lib/reqif/editable_atts.rb