Sha256: 87aa2b1574b2c3ad2acd7c00ef3ade685d674f79af6b6799cb798240d9075041
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
module MoneyS3 module Builders class MsgPolozType < MessageType include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) if data.key? :attributes data[:attributes].each { |k, v| root[k] = v } end super.nodes.each do |n| root << n end if data.key? :km_karta root << MessageType.new('KmKarta', data[:km_karta]).builder end if data.key? :sklad root << MessageType.new('Sklad', data[:sklad]).builder end root end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-1.0.0 | lib/money_s3/builders/msg_poloz_type.rb |