Sha256: f6489e0503ffb13a166eb260219f6d74146066167a3dd5ab82830c0fdceb772e
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
module MoneyS3 module Builders class PrepravceType include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) if data.key? :attributes data[:attributes].each { |k, v| root[k] = v } end root << build_element('Zkrat', data[:zkrat], data[:zkrat_attributes]) if data.key? :zkrat root << build_element('Nazev', data[:nazev], data[:nazev_attributes]) if data.key? :nazev root << build_element('Poznamka', data[:poznamka], data[:poznamka_attributes]) if data.key? :poznamka root << build_element('KodOdesil', data[:kod_odesil], data[:kod_odesil_attributes]) if data.key? :kod_odesil root end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-1.0.0 | lib/money_s3/builders/prepravce_type.rb |