Sha256: be59f14e53547fae4bdbac22c30f97a117f9e767164a8b9147ca7b8a657c4e06

Contents?: true

Size: 629 Bytes

Versions: 6

Compression:

Stored size: 629 Bytes

Contents

module MoneyS3
  module Builders
    class Ucet
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        root = add_attributes_and_namespaces(root)

        root << build_element('Zkrat', data[:zkrat], data[:zkrat_attributes]) if data.key? :zkrat
        root << build_element('Ucet', data[:ucet], data[:ucet_attributes]) if data.key? :ucet
        root << build_element('BKod', data[:b_kod], data[:b_kod_attributes]) if data.key? :b_kod
        root << build_element('BNazev', data[:b_nazev], data[:b_nazev_attributes]) if data.key? :b_nazev

        root
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/builders/ucet.rb
money_s3-2.4.0 lib/money_s3/builders/ucet.rb
money_s3-2.3.0 lib/money_s3/builders/ucet.rb
money_s3-2.2.0 lib/money_s3/builders/ucet.rb
money_s3-2.1.0 lib/money_s3/builders/ucet.rb
money_s3-2.0.0 lib/money_s3/builders/ucet.rb