Sha256: 0174a3ead3f6cb4c914dfe2eddd45b81a2aeef705d69e25880a9886750d65891
Contents?: true
Size: 715 Bytes
Versions: 2
Compression:
Stored size: 715 Bytes
Contents
module MoneyS3 module Builders class MsgIntDoklType < 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? :adresa root << MessageType.new('Adresa', data[:adresa]).builder end if data.key? :polozka data[:polozka].each { |i| root << MessageType.new('Polozka', i).builder } end if data.key? :data root << IntDoklType.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_int_dokl_type.rb |
money_s3-0.11.0 | lib/money_s3/builders/msg_int_dokl_type.rb |