Sha256: 63db108e52fc3ee82add328dcc4bbfad02d81270fb3eeabc05a090560c85427b
Contents?: true
Size: 807 Bytes
Versions: 1
Compression:
Stored size: 807 Bytes
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/header_kusovnik_type' require 'money_s3/builders/child_kusovnik_type' require 'money_s3/builders/komponenta_kusovnik_type' module MoneyS3 module Builders class KusovnikType include BaseBuilder attr_accessor :header, :child, :seznam_komponent def builder root = Ox::Element.new(element_name) root << HeaderKusovnikType.new(header, 'Header').builder if header root << ChildKusovnikType.new(child, 'Child').builder if child if seznam_komponent element = Ox::Element.new('SeznamKomponent') seznam_komponent.each { |i| element << KomponentaKusovnikType.new(i, 'Komponenta').builder } root << element end root end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.4.0 | lib/money_s3/builders/kusovnik_type.rb |