Sha256: dbdfea2d084c11760299f911e221ddd174988aad517c189b484c63f9a2309047

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/prodejka'

module MoneyS3
  module Builders
    class SeznamProdejka
      include BaseBuilder

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

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