Sha256: bc889452fd5b1a8eb0db1d613d3672e7668380e4206034a78678375339eb4705

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/valuty'

module MoneyS3
  module Builders
    class SouhrnDPHPolType
      include BaseBuilder

      attr_accessor :zaklad_mj, :dph_mj, :zaklad, :dph, :valuty

      def builder
        root = Ox::Element.new(element_name)

        root << (Ox::Element.new('Zaklad_MJ') << zaklad_mj) if zaklad_mj
        root << (Ox::Element.new('DPH_MJ') << dph_mj) if dph_mj
        root << (Ox::Element.new('Zaklad') << zaklad) if zaklad
        root << (Ox::Element.new('DPH') << dph) if dph
        root << Valuty.new(valuty, 'Valuty').builder if valuty

        root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/builders/souhrn_dph_pol_type.rb