Class: Supreme::Banklist

Inherits:
Response show all
Defined in:
lib/supreme/response.rb

Overview

Response to a banklist request

Instance Attribute Summary

Attributes inherited from Response

#body

Instance Method Summary collapse

Methods inherited from Response

#error?, for, #initialize

Constructor Details

This class inherits a constructor from Supreme::Response

Instance Method Details

#to_aObject



35
36
37
38
39
# File 'lib/supreme/response.rb', line 35

def to_a
  @body.get_elements('//bank').map do |issuer|
    { :id => issuer.get_text('bank_id').to_s, :name => issuer.get_text('bank_name').to_s }
  end
end