Sha256: 16eb2dc295469d3b1e908c4d1a1826371ffc609cb7e4bc33fb4beddeb73bf0ef

Contents?: true

Size: 445 Bytes

Versions: 6

Compression:

Stored size: 445 Bytes

Contents

module MoneyS3
  module Builders
    class Vlajky
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        root = add_attributes_and_namespaces(root)

        if data.key? :global
          root << VlajkaType.new('Global', data[:global]).builder
        end
        if data.key? :user
          root << VlajkaType.new('User', data[:user]).builder
        end

        root
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/builders/vlajky.rb
money_s3-2.4.0 lib/money_s3/builders/vlajky.rb
money_s3-2.3.0 lib/money_s3/builders/vlajky.rb
money_s3-2.2.0 lib/money_s3/builders/vlajky.rb
money_s3-2.1.0 lib/money_s3/builders/vlajky.rb
money_s3-2.0.0 lib/money_s3/builders/vlajky.rb