Sha256: 9ce5c52bbb9156da52e1cd712e850e1b04165b2b63cab0ec1ea033f6436446cb

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/fakt_vyd'

module MoneyS3
  module Builders
    class SeznamFaktVyd
      include BaseBuilder

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

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