Class: Ideal::DirectoryResponse
- 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
Instance Method Summary collapse
-
#list ⇒ Object
Returns a list of issuers available at the acquirer.
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
#list ⇒ Object
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 |