Sha256: fd29182bf74743f52ed821cf62d69c0922ba13b7826d21d411e8466cf8df0859
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require "shale" require_relative "./conformance_test" require_relative "./identifier" module Modspec class ConformanceClass < Shale::Mapper attribute :identifier, Identifier attribute :name, Shale::Type::String attribute :description, Shale::Type::String attribute :classification, Shale::Type::String attribute :dependencies, Identifier, collection: true attribute :target, Identifier, collection: true attribute :tests, ConformanceTest, collection: true attribute :belongs_to, Identifier, collection: true attribute :reference, Shale::Type::String xml do root "conformance-class" map_attribute "identifier", to: :identifier map_element "name", to: :name map_element "dependencies", to: :dependencies map_element "target", to: :target map_element "classification", to: :classification map_element "tests", to: :tests map_element "belongs_to", to: :belongs_to map_element "description", to: :description map_element "reference", to: :reference end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
modspec-0.1.0 | lib/modspec/conformance_class.rb |