Sha256: 0a5ea32ffbcf340c11d95799cf79216e707bede925d99f00ba427bf563ae22f5
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
module MoneyS3 module Builders class Valuty2 include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) if data.respond_to? :attributes data.attributes.each { |k, v| root[k] = v } end if data.key? :mena root << MenaType.new('Mena', data[:mena]).builder end if data.key? :souhrn_dph root << SouhrnDPHType.new('SouhrnDPH', data[:souhrn_dph]).builder end root << build_element('Celkem', data[:celkem]) if data.key? :celkem root end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.12.0 | lib/money_s3/builders/valuty2.rb |
money_s3-0.11.0 | lib/money_s3/builders/valuty2.rb |