Sha256: 47efa0a8122f065c98546ac57db95a6ef50a2ad9d3260d3c3a4a7af90060d1c9

Contents?: true

Size: 473 Bytes

Versions: 6

Compression:

Stored size: 473 Bytes

Contents

module MoneyS3
  module Builders
    class SubPolObjType
      include ParserCore::BaseBuilder

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

        root << build_element('MJNaSadu', data[:mj_na_sadu], data[:mj_na_sadu_attributes]) if data.key? :mj_na_sadu
        if data.key? :polozka
          root << PolObjednType.new('Polozka', data[:polozka]).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/sub_pol_obj_type.rb
money_s3-2.4.0 lib/money_s3/builders/sub_pol_obj_type.rb
money_s3-2.3.0 lib/money_s3/builders/sub_pol_obj_type.rb
money_s3-2.2.0 lib/money_s3/builders/sub_pol_obj_type.rb
money_s3-2.1.0 lib/money_s3/builders/sub_pol_obj_type.rb
money_s3-2.0.0 lib/money_s3/builders/sub_pol_obj_type.rb