Sha256: d9d087fa8b1f49a41bfb9b36e1e9ed2057709f87770e01dd2672a59ac609ce76
Contents?: true
Size: 814 Bytes
Versions: 5
Compression:
Stored size: 814 Bytes
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/header_kusovnik_type' require 'money_s3/builders/child_kusovnik_type' require 'money_s3/builders/km_karta_type' module MoneyS3 module Builders class VzorKomponentaType 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? :header root << HeaderKusovnikType.new('Header', data[:header]).builder end if data.key? :child root << ChildKusovnikType.new('Child', data[:child]).builder end if data.key? :km_karta root << KmKartaType.new('KmKarta', data[:km_karta]).builder end root end end end end
Version data entries
5 entries across 5 versions & 1 rubygems