Sha256: 394c02459203ca583313e47ebd84571a7f6c1271c8be6f6177f229e649c1d12f

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

module MoneyS3
  module Builders
    class Vlajky
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        if data.key? :attributes
          data[:attributes].each { |k, v| root[k] = v }
        end

        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

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-1.0.0 lib/money_s3/builders/vlajky.rb