Sha256: 42c978657e09385310c0a0698480fdc98a7f2b97c862de8cb18297debd4e2a59
Contents?: true
Size: 875 Bytes
Versions: 5
Compression:
Stored size: 875 Bytes
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/stav_zasoby_type' require 'money_s3/builders/km_karta_type' require 'money_s3/builders/sklad_type' module MoneyS3 module Builders class KomponentaType include BaseBuilder def builder root = Ox::Element.new(name) if data.respond_to? :attributes data.attributes.each { |k, v| root[k] = v } end root << build_element('PocMJ', data[:poc_mj]) if data.key? :poc_mj if data.key? :stav_zasoby root << StavZasobyType.new('StavZasoby', data[:stav_zasoby]).builder end if data.key? :km_karta root << KmKartaType.new('KmKarta', data[:km_karta]).builder end if data.key? :sklad root << SkladType.new('Sklad', data[:sklad]).builder end root end end end end
Version data entries
5 entries across 5 versions & 1 rubygems