Sha256: 7b83eadab07a88e43dd4ca05c0f9257548fffb3cc5ea1e200071439479f515fd

Contents?: true

Size: 506 Bytes

Versions: 7

Compression:

Stored size: 506 Bytes

Contents

require "shale"
require_relative "../types/string_without_indent"

module Stepmod
  module Utils
    module Parsers
      module Models
        class Refpath < Shale::Mapper
          attribute :content,
                    Stepmod::Utils::Parsers::Types::StringWithoutIndent
          attribute :space, Shale::Type::Value

          xml do
            root "refpath"

            map_content to: :content
            map_attribute "space", to: :space
          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/refpath.rb
stepmod-utils-0.6.5 lib/stepmod/utils/parsers/models/refpath.rb
stepmod-utils-0.6.3 lib/stepmod/utils/parsers/models/refpath.rb
stepmod-utils-0.6.2 lib/stepmod/utils/parsers/models/refpath.rb
stepmod-utils-0.6.1 lib/stepmod/utils/parsers/models/refpath.rb
stepmod-utils-0.6.0 lib/stepmod/utils/parsers/models/refpath.rb
stepmod-utils-0.5.0 lib/stepmod/utils/parsers/models/refpath.rb