Sha256: 7965c1f86c8fe7feb9d2217b4d6a4074d3584af13d42539760f4a56527621443
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
module MoneyS3 module Builders class MsgFirmaType < MessageType include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) if data.respond_to? :attributes data.attributes.each { |k, v| root[k] = v } end super.nodes.each do |n| root << n end if data.key? :osoba data[:osoba].each { |i| root << MessageType.new('Osoba', i).builder } end if data.key? :data root << FirmaType.new('Data', data[:data]).builder end 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/msg_firma_type.rb |
money_s3-0.11.0 | lib/money_s3/builders/msg_firma_type.rb |