Sha256: 1511a938ea29f5ca1fa1fcaa54301645ea2d297fcbcaebcb106a7b23e66d9033

Contents?: true

Size: 915 Bytes

Versions: 1

Compression:

Stored size: 915 Bytes

Contents

require "lutaml/model"

module Reqif
  class ReqIfHeader < Lutaml::Model::Serializable
    attribute :identifier, :string
    attribute :comment, :string
    attribute :creation_time, :time
    attribute :repository_id, :string
    attribute :req_if_tool_id, :string
    attribute :req_if_version, :string
    attribute :source_tool_id, :string
    attribute :title, :string

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

      map_attribute "IDENTIFIER", to: :identifier
      map_element "COMMENT", to: :comment
      map_element "CREATION-TIME", to: :creation_time
      map_element "REPOSITORY-ID", to: :repository_id
      map_element "REQ-IF-TOOL-ID", to: :req_if_tool_id
      map_element "REQ-IF-VERSION", to: :req_if_version
      map_element "SOURCE-TOOL-ID", to: :source_tool_id
      map_element "TITLE", to: :title
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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