Sha256: 4c5467015dd61b11124ae61fd0722ae3963956174d204e76502058e4ae22a95d

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

module MoneyS3
  module Builders
    class MsgFaktPolozType < MessageType
      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

        if data.key? :skl_polozka
          root << MsgPolozType.new('SklPolozka', data[:skl_polozka]).builder
        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/msg_fakt_poloz_type.rb
money_s3-0.11.0 lib/money_s3/builders/msg_fakt_poloz_type.rb