Class: Ideal::DirectoryResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/ideal/response.rb

Overview

An instance of DirectoryResponse is returned from Gateway#issuers which returns the list of issuers available at the acquirer.

Instance Attribute Summary

Attributes inherited from Response

#response

Instance Method Summary collapse

Methods inherited from Response

#consumer_error_message, #error_code, #error_details, #error_message, #error_type, #initialize, #success?, #test?

Constructor Details

This class inherits a constructor from Ideal::Response

Instance Method Details

#listObject

Returns a list of issuers available at the acquirer.

gateway.issuers.list # => [{ :id => '1006', :name => 'ABN AMRO Bank' }]


244
245
246
247
248
# File 'lib/ideal/response.rb', line 244

def list
  @response.get_elements('//Issuer').map do |issuer|
    { :id => issuer.get_text('issuerID').to_s, :name => issuer.get_text('issuerName').to_s }
  end
end