Sha256: ff6bef43404170e5898f3162c5b7c02a55cbf25843b9dad48f1e163f379a6341
Contents?: true
Size: 609 Bytes
Versions: 5
Compression:
Stored size: 609 Bytes
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/doklad' module MoneyS3 module Builders class VazbaType 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('Typ', data[:typ]) if data.key? :typ root << build_element('PodTyp', data[:pod_typ]) if data.key? :pod_typ if data.key? :doklad root << Doklad.new('Doklad', data[:doklad]).builder end root end end end end
Version data entries
5 entries across 5 versions & 1 rubygems