Sha256: b7538609efdfd23ded866bcf68034ca4a7c2c640943b3d93f70467253da9497b
Contents?: true
Size: 872 Bytes
Versions: 2
Compression:
Stored size: 872 Bytes
Contents
module MoneyS3 module Builders class CenovaHladinaType include ParserCore::BaseBuilder include Groups::DefiniceCeny 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 if data.key? :mena root << MenaType.new('Mena', data[:mena]).builder end root << build_element('Skup', data[:skup]) if data.key? :skup root << build_element('Ceny', data[:ceny]) if data.key? :ceny mega.each do |r| r.nodes.each { |n| root << n } end root end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.12.0 | lib/money_s3/builders/cenova_hladina_type.rb |
money_s3-0.11.0 | lib/money_s3/builders/cenova_hladina_type.rb |