Sha256: d6b4c69e0eb890ac63d5d9ff3c651b9e74a35e435bb3432cbdd8b9c82ba1e86a
Contents?: true
Size: 476 Bytes
Versions: 5
Compression:
Stored size: 476 Bytes
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/sklad' module MoneyS3 module Builders class SeznamSkladu 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? :sklad data[:sklad].each { |i| root << Sklad.new('Sklad', i).builder } end root end end end end
Version data entries
5 entries across 5 versions & 1 rubygems