Sha256: a6e824a5695dbe120eafd76127fa3d491f78694ffba6692811978fb89c565947
Contents?: true
Size: 588 Bytes
Versions: 5
Compression:
Stored size: 588 Bytes
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/message_type' module MoneyS3 module Builders class MsgPolozType include 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? :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
5 entries across 5 versions & 1 rubygems