Sha256: 73b6c9fb19f17d36c46f2c76ab3aff543ceb5dc50b61a9b92a22e5d2cad8874c

Contents?: true

Size: 604 Bytes

Versions: 6

Compression:

Stored size: 604 Bytes

Contents

module MoneyS3
  module Builders
    class Control
      include ParserCore::BaseBuilder

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

        if data.key? :cislo_davky
          root << MessageRootType.new('CisloDavky', data[:cislo_davky]).builder
        end
        if data.key? :kod_agendy
          root << MessageRootType.new('KodAgendy', data[:kod_agendy]).builder
        end
        if data.key? :hosp_rok
          root << MessageRootType.new('HospRok', data[:hosp_rok]).builder
        end

        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/control.rb
money_s3-2.4.0 lib/money_s3/builders/control.rb
money_s3-2.3.0 lib/money_s3/builders/control.rb
money_s3-2.2.0 lib/money_s3/builders/control.rb
money_s3-2.1.0 lib/money_s3/builders/control.rb
money_s3-2.0.0 lib/money_s3/builders/control.rb