Sha256: 6ae6060a592c13db67cb3e4301ea2a7c4a2e00b91d348c21c2eb555ec9e64c2e

Contents?: true

Size: 625 Bytes

Versions: 5

Compression:

Stored size: 625 Bytes

Contents

require 'money_s3/builders/base_builder'

module MoneyS3
  module Builders
    class BankSpojeniType
      include BaseBuilder

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

        root << build_element('Ucet', data[:ucet]) if data.key? :ucet
        root << build_element('KodBanky', data[:kod_banky]) if data.key? :kod_banky
        root << build_element('Mena', data[:mena]) if data.key? :mena
        root << build_element('Ucel', data[:ucel]) if data.key? :ucel

        root
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/builders/bank_spojeni_type.rb
money_s3-0.9.0 lib/money_s3/builders/bank_spojeni_type.rb
money_s3-0.8.0 lib/money_s3/builders/bank_spojeni_type.rb
money_s3-0.7.0 lib/money_s3/builders/bank_spojeni_type.rb
money_s3-0.6.0 lib/money_s3/builders/bank_spojeni_type.rb