Sha256: f378919747bd6a5c8729df405d88c36262af99a23667a4fc57627dac08b913b1
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/km_karta_type' require 'money_s3/builders/sklad_type' module MoneyS3 module Builders class AlternativaPrislusenstviType 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('Popis', data[:popis]) if data.key? :popis root << build_element('PocMJ', data[:poc_mj]) if data.key? :poc_mj root << build_element('Poradi', data[:poradi]) if data.key? :poradi root << build_element('DruhKomp', data[:druh_komp]) if data.key? :druh_komp root << build_element('Symetric', data[:symetric]) if data.key? :symetric 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