Sha256: c17db0413f0cf1872deffa43afbe10eac873acd232e433f0e6981e19bac4779a

Contents?: true

Size: 613 Bytes

Versions: 5

Compression:

Stored size: 613 Bytes

Contents

require 'money_s3/builders/base_builder'

module MoneyS3
  module Builders
    class Ucet
      include BaseBuilder

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

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

        root
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/builders/ucet.rb
money_s3-0.9.0 lib/money_s3/builders/ucet.rb
money_s3-0.8.0 lib/money_s3/builders/ucet.rb
money_s3-0.7.0 lib/money_s3/builders/ucet.rb
money_s3-0.6.0 lib/money_s3/builders/ucet.rb