Sha256: b449fcc90f9b7d85169608edd3da7068482ca28b10efa66d837846f861080e96

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/predkontace'

module MoneyS3
  module Builders
    class SeznamPredkontaci
      include BaseBuilder

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

        if attributes.key? :predkontace
          attributes[:predkontace].each { |i| root << Predkontace.new(i, 'Predkontace').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_predkontaci.rb