Sha256: 8c41e6afc58b3f069bb8b075ed9f2b1b29373a340a375af3a37a3e5a122412a1

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

require "shale"

module Modspec
  class Suite < Shale::Mapper
    attribute :identifier, Identifier
    attribute :name, Shale::Type::String
    attribute :normative_statements_classes, NormativeStatementsClass, collection:true
    attribute :conformance_classes, ConformanceClass, collection:true

    xml do
      root "suite"
      map_attribute "identifier", to: :identifier
      map_element "name", to: :name
      map_element "normative-statements-classes", to: :normative_statements_classes
      map_element "conformance-classes", to: :conformance_classes
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
modspec-0.1.0 lib/modspec/suite.rb