Sha256: a55a624d79f3c592df356c0a36a265250330b786fb5f0d4acc4a6728189996a8

Contents?: true

Size: 416 Bytes

Versions: 7

Compression:

Stored size: 416 Bytes

Contents

require "shale"

module Stepmod
  module Utils
    module Parsers
      module Models
        class ModuleRef < Shale::Mapper
          attribute :content, Shale::Type::String
          attribute :linkend, Shale::Type::String

          xml do
            root "module_ref"

            map_content to: :content
            map_attribute "linkend", to: :linkend
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stepmod-utils-0.6.6 lib/stepmod/utils/parsers/models/module_ref.rb
stepmod-utils-0.6.5 lib/stepmod/utils/parsers/models/module_ref.rb
stepmod-utils-0.6.3 lib/stepmod/utils/parsers/models/module_ref.rb
stepmod-utils-0.6.2 lib/stepmod/utils/parsers/models/module_ref.rb
stepmod-utils-0.6.1 lib/stepmod/utils/parsers/models/module_ref.rb
stepmod-utils-0.6.0 lib/stepmod/utils/parsers/models/module_ref.rb
stepmod-utils-0.5.0 lib/stepmod/utils/parsers/models/module_ref.rb