Sha256: 81f14a9c587b6b4cebb011da85c454a1729ef54f7439bec02a9fcffb8dc34a0c
Contents?: true
Size: 823 Bytes
Versions: 5
Compression:
Stored size: 823 Bytes
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/mena_type' module MoneyS3 module Builders class CenovaHladina 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('Zkrat', data[:zkrat]) if data.key? :zkrat root << build_element('Nazev', data[:nazev]) if data.key? :nazev root << build_element('Pozn', data[:pozn]) if data.key? :pozn root << build_element('Skup', data[:skup]) if data.key? :skup root << build_element('Ceny', data[:ceny]) if data.key? :ceny if data.key? :mena root << MenaType.new('Mena', data[:mena]).builder end root end end end end
Version data entries
5 entries across 5 versions & 1 rubygems