Class: Supreme::Banklist
Overview
Response to a banklist request
Instance Attribute Summary
Attributes inherited from Response
Instance Method Summary collapse
Methods inherited from Response
Constructor Details
This class inherits a constructor from Supreme::Response
Instance Method Details
#to_a ⇒ Object
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 |