Sha256: a9cbeedc0b835b8b4fc4eeb435e91e90f05f78f7673b8c2cac02c2f7bbc5e4a4

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

module MoneyS3
  module Builders
    class Cinnost < CinnostType
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        if data.respond_to? :attributes
          data.attributes.each { |k, v| root[k] = v }
        end

        super.nodes.each do |n|
          root << n
        end

        root
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/builders/cinnost.rb
money_s3-0.11.0 lib/money_s3/builders/cinnost.rb