Sha256: 30116424b3b53af77a48ae6bafe48d838881d23b8c1dad5d1d97f51354d8f710

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/zamestnanec_type'

module MoneyS3
  module Builders
    class SeznamZamestnancu
      include BaseBuilder

      attr_accessor :zamestnanec

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

        if zamestnanec
          zamestnanec.each { |i| root << ZamestnanecType.new(i, 'Zamestnanec').builder }
        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/seznam_zamestnancu.rb