Sha256: 90fb31c50f0707ae8f585c0b0eebebaa61bc9f0a8813cdc71ae59266ab3a93c9

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

module MoneyS3
  module Builders
    class VazbaType
      include ParserCore::BaseBuilder

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

        root << build_element('Typ', data[:typ], data[:typ_attributes]) if data.key? :typ
        root << build_element('PodTyp', data[:pod_typ], data[:pod_typ_attributes]) if data.key? :pod_typ
        if data.key? :doklad
          root << Doklad.new('Doklad', data[:doklad]).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/vazba_type.rb
money_s3-2.4.0 lib/money_s3/builders/vazba_type.rb
money_s3-2.3.0 lib/money_s3/builders/vazba_type.rb
money_s3-2.2.0 lib/money_s3/builders/vazba_type.rb
money_s3-2.1.0 lib/money_s3/builders/vazba_type.rb
money_s3-2.0.0 lib/money_s3/builders/vazba_type.rb