Sha256: 9229379629bd776945768f6e23a78efcf8550ba66253b4968a216759344fd15e

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/uc_osnova_type'

module MoneyS3
  module Builders
    class SeznamUcOsnov
      include BaseBuilder

      def builder
        root = Ox::Element.new(element_name)

        if attributes.key? :uc_osnova
          attributes[:uc_osnova].each { |i| root << UcOsnovaType.new(i, 'UcOsnova').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/seznam_uc_osnov.rb