Sha256: 31d0d4a06b090670b5f3a62799317d15c5a868e9a0db8918d5477789c687e40c
Contents?: true
Size: 938 Bytes
Versions: 1
Compression:
Stored size: 938 Bytes
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/prac_pomer' module MoneyS3 module Builders class MzdoveObdobiType include BaseBuilder def builder root = Ox::Element.new(element_name) if attributes.key? :mesic element = Ox::Element.new('Mesic') element << attributes[:mesic] if attributes[:mesic] root << element end if attributes.key? :rok element = Ox::Element.new('Rok') element << attributes[:rok] if attributes[:rok] root << element end if attributes.key? :funkce element = Ox::Element.new('Funkce') element << attributes[:funkce] if attributes[:funkce] root << element end if attributes.key? :prac_pomer root << PracPomer.new(attributes[:prac_pomer], 'PracPomer').builder end root end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.5.0 | lib/money_s3/builders/mzdove_obdobi_type.rb |