Class: MoneyS3::Builders::MzPriplatek

Inherits:
Object
  • Object
show all
Includes:
ParserCore::BaseBuilder
Defined in:
lib/money_s3/builders/mz_priplatek.rb

Instance Method Summary collapse

Instance Method Details

#builderObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/money_s3/builders/mz_priplatek.rb', line 6

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

  if data.key? :typ_priplatku
    root << TypPriplatkuType.new('TypPriplatku', data[:typ_priplatku]).builder
  end
  root << build_element('PripHodin', data[:prip_hodin], data[:prip_hodin_attributes]) if data.key? :prip_hodin

  root
end