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