Sha256: c18308246a1471eb6baed52b3a79a6b73e033094e261cf5865a24da37e14a7e6

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

require "shale"

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

          xml do
            root "bom_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/bom_ref.rb
stepmod-utils-0.6.5 lib/stepmod/utils/parsers/models/bom_ref.rb
stepmod-utils-0.6.3 lib/stepmod/utils/parsers/models/bom_ref.rb
stepmod-utils-0.6.2 lib/stepmod/utils/parsers/models/bom_ref.rb
stepmod-utils-0.6.1 lib/stepmod/utils/parsers/models/bom_ref.rb
stepmod-utils-0.6.0 lib/stepmod/utils/parsers/models/bom_ref.rb
stepmod-utils-0.5.0 lib/stepmod/utils/parsers/models/bom_ref.rb