lib/sepa/banks/danske/soap_danske.rb
def find_correct_build
        case @command
        when :create_certificate
          build_create_certificate_request
        when :upload_file, :download_file, :get_user_info, :download_file_list
          build_danske_generic_request
        when :get_bank_certificate
          build_get_bank_certificate_request
        when :renew_certificate
          build_renew_certificate_request
        end
      end
# Determines which kind of request to build depending on command. Certificate requests differ
# from generic requests.
#
# @return [Nokogiri::XML] the built soap as a nokogiri document
# @todo remove `:get_user_info` since Danske Bank doesn't support it
Determines which kind of request to build depending on command. Certificate requests differ
from generic requests.
Determines which kind of request to build depending on command . Certificate requests differ from generic requests .
def find_correct_build
        case @command
        when :create_certificate
          build_create_certificate_request
        when :upload_file, :download_file, :get_user_info, :download_file_list
          build_danske_generic_request
        when :get_bank_certificate
          build_get_bank_certificate_request
        when :renew_certificate
          build_renew_certificate_request
        end
      end
def find_correct_build case @command when :create_certificate build_create_certificate_request when :upload_file , :download_file , :get_user_info , :download_file_list build_danske_generic_request when :get_bank_certificate build_get_bank_certificate_request when :renew_certificate build_renew_certificate_request end end
Determines which kind of request to build depending on command.
Determines which kind of request to build depending on command .
the built soap as a nokogiri document
the built soap as a nokogiri document
Nokogiri::XML
todo
remove `:get_user_info` since Danske Bank doesn't support it
remove ` : get_user_info ` since Danske Bank doesn ' t support it