Sha256: 495cdad9451c5f8250ceb02e6be916155e26805e4b6eab2e162a08b0ed07feb2

Contents?: true

Size: 402 Bytes

Versions: 8

Compression:

Stored size: 402 Bytes

Contents

require "shale"

module Stepmod
  module Utils
    module Parsers
      module Models
        class Source < Shale::Mapper
          attribute :content, Shale::Type::String
          attribute :space, Shale::Type::Value

          xml do
            root "source"

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

Version data entries

8 entries across 8 versions & 1 rubygems

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